Skip to content

Rollup of 7 pull requests - #162375

Closed
JonathanBrouwer wants to merge 14 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-SXRSASf
Closed

Rollup of 7 pull requests#162375
JonathanBrouwer wants to merge 14 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-SXRSASf

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

RalfJung and others added 14 commits September 5, 2026 20:42
Force u8/i8 numeric formatting on LLDB

Resolves a very common annoyance with the existing visualizers. This doesn't touch the behavior that formats char pointers as c-strings since that's its own can of worms (and likely needs to be handled alongside adding the wide pointer visualizer).

I disabled checking `Rc<str>` in `strings-and-strs.rs`, as this patch caused it to fail on `windows-gnu` and the fix is the wide pointer visualizer. Technically, even on `linux-gnu` the test only works because it's seemingly somewhat reliable for there to be a null byte directly after the `str` data, but that's obviously not something we should be relying on.

Also fixes `tests\debuginfo\borrowed-unique-basic.rs` on `windows-msvc` as part of rust-lang#161657 (comment)

r? @Kobzol, @jieyouxu

---

try-job: aarch64-apple-1
try-job: x86_64-mingw-1
…, r=jieyouxu

Use `lldb.eTypeOptionHideChildren` for msvc tuples

Changes output from e.g. `(8, 5.5) { 0:8, 1:5.5 }` to just `(8, 5.5)` to match non-msvc handling.

Fixes the following tests on `windows-msvc` (see rust-lang#161657):

* `tests\debuginfo\borrowed-tuple.rs`
* `tests\debuginfo\box.rs`
* `tests\debuginfo\cross-crate-spans.rs`
* `tests\debuginfo\destructured-local.rs`
* `tests\debuginfo\pretty-std-collections.rs`
* `tests\debuginfo\simple-tuple.rs`
* `tests\debuginfo\tuple-in-tuple.rs`

Also partially fixes `tests\debuginfo\associated-types.rs`

r? @Kobzol, @jieyouxu

---

try-job: x86_64-msvc-1
try-job: aarch64-msvc-1
Use `#[repr(C)]` on debuginfo test structs

This fixes a couple of issues.

* LLDB reading PDB debug info re-orders fields and displays them in offset order instead of source-order like DWARF. While this has been [fixed upstream](llvm/llvm-project#218731), it'll be quite a while before it's reflected in CI runners and such
* For all targets, the structs were often written (and named) under the assumption that they would have specific layouts. Nothing was actually enforcing those assumed layouts, so very often a type would be named e.g. `HasInternalPadding` but rust would reorder it such that no internal padding existed.

`struct-with-destructor.rs` is still iffy. I'll test it when I get home and can update my main PC's LLDB.

On my remote PC (lldb 22.1.2) it didn't fix the test, and it looked like the variable was straight up being read incorrectly:

 ```
// expected:
 (struct_with_destructor::NestedOuter) nested = {a:{a:{x:7890, y:9870}}}
// got:
 (struct_with_destructor::NestedOuter) nested = {a:{a:{y:1378684509906, x:9870}}
 ```
On my laptop when manually inspecting it (CodeLLDB which uses 22.1.8 under the hood) everything looked fine, so it might have been a bug that LLDB patched.

Part of the MSVC test fixes for rust-lang#161657

r? @Kobzol, @jieyouxu

---

test-jobs: aarch64-apple-1
test-jobs: aarch64-msvc-1
test-jobs: x86_64-msvc-1
test-jobs: x86_64-mingw-1
…nyukang

remove stale/duplicate tests

Conversation from: https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/Duplicate.20tests/with/621165039

* `recursion2.rs` -> `recursion1.rs`
* `drop-track-field-assign-nonsend.rs` -> `field-assign-nonsend.rs`
* `drop-track-field-assign.rs` -> `field-assign.rs`
* `suggest-local-var-for-vector.rs` -> `suggest-storing-local-var-for-vector.rs`
* `recursion-issue-105275.rs` -> `recursion-issue-105937.rs`
* `migrate-fail.rs` -> `nll-fail.rs`
* `migrate-pass.rs` -> `nll-pass.rs`
* `issue-29914-2.rs` -> `issue-29914.rs`
* `drop-tracking-parent-expression.rs` -> `parent-expression.rs`
* `tuple-like-structs-cross-crate-7899.rs` -> `tuple-struct-cross-crate-7899.rs`
* `E0508-fail.rs` -> `E0508.rs`
* `ex3-both-anon-regions-one-is-struct-4.rs` -> `ex3-both-anon-regions-one-is-struct-3.rs`
* `stability_cfg2.rs` -> `stability-cfg2.rs`
* `issue-1802-2.rs` -> `issue-1802-1.rs`
* `tool_lints_2018_preview.rs` -> `tool_lints-rpass.rs`
* `issue-58951-2.rs` -> `issue-58951.rs`
* `issue-74761-2.rs` -> `issue-74761.rs`
* `issue-30276-feature-flagged.rs` -> `issue-30276.rs`
Add several new LLDB feature flags

These flags aren't currently used anywhere, but the features they describe are *incredibly* useful (particularly for a wide pointer visualizer that I have in the works). This patch serves both to document them (especially a feature we *shouldn't* use), and to prep for future visualizers.
…r=folkertdev

add regression test for packus_epi16 issue

rust-lang#159464 got fixed without a test. This adds the missing test.

Ideally this would be tested in stdarch, but we don't have enough infrastructure for that. Testing it here is better than not testing it at all.

Cc @folkertdev
… r=clarfonthey

Make `VaArgSafe` dyn-incompatible

This is done just in case we want to later do stuff like adding a `Sized` supertrait.

See discussion at [#t-libs > Should &rust-lang#96;VaArgSafe&rust-lang#96; require &rust-lang#96;Sized&rust-lang#96;?](https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/Should.20.60VaArgSafe.60.20require.20.60Sized.60.3F/with/622074620)

r? @clarfonthey
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Sep 6, 2026
@rustbot rustbot added A-tidy Area: The tidy tool S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Sep 6, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5

Trying commonly failed jobs
@bors try jobs=dist-various-1,test-various,x86_64-gnu-aux,x86_64-gnu-llvm-21-3,x86_64-msvc-1,aarch64-apple-1,aarch64-apple-2,x86_64-mingw-1,i686-msvc-1,i686-msvc-2

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2ee0490 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 6, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
Rollup of 7 pull requests


try-job: dist-various-1
try-job: test-various
try-job: x86_64-gnu-aux
try-job: x86_64-gnu-llvm-21-3
try-job: x86_64-msvc-1
try-job: aarch64-apple-1
try-job: aarch64-apple-2
try-job: x86_64-mingw-1
try-job: i686-msvc-1
try-job: i686-msvc-2
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
…uwer

Rollup of 7 pull requests

Successful merges:

 - #162358 (Force u8/i8 numeric formatting on LLDB)
 - #162359 (Use `lldb.eTypeOptionHideChildren` for msvc tuples)
 - #162364 (Use `#[repr(C)]` on debuginfo test structs)
 - #162215 (remove stale/duplicate tests)
 - #162335 (Add several new LLDB feature flags)
 - #162341 (add regression test for packus_epi16 issue)
 - #162374 (Make `VaArgSafe` dyn-incompatible)
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-msvc-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
test [assembly] tests\assembly-llvm\x86_64-windows-i128-abi.rs#softfloat ... ok

failures:

---- [assembly] tests\assembly-llvm\x86-vendor-intrinsics.rs stdout ----
------FileCheck.exe stdout------------------------------

------FileCheck.exe stderr------------------------------
D:\a\rust\rust\tests\assembly-llvm\x86-vendor-intrinsics.rs:16:12: error: CHECK: expected string not found in input
 // CHECK: .cfi_startproc
           ^
D:\a\rust\rust\build\x86_64-pc-windows-msvc\test\assembly-llvm\x86-vendor-intrinsics\x86-vendor-intrinsics.s:16:19: note: scanning from here
test_packus_epi16:
                  ^
D:\a\rust\rust\build\x86_64-pc-windows-msvc\test\assembly-llvm\x86-vendor-intrinsics\x86-vendor-intrinsics.s:18:2: note: possible intended match here
 packuswb (%rdx), %xmm0
 ^

Input file: D:\a\rust\rust\build\x86_64-pc-windows-msvc\test\assembly-llvm\x86-vendor-intrinsics\x86-vendor-intrinsics.s
Check file: D:\a\rust\rust\tests\assembly-llvm\x86-vendor-intrinsics.rs

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1:  .def @feat.00; 
            2:  .scl 3; 
            3:  .type 0; 
            4:  .endef 
            5:  .globl @feat.00 
            6: @feat.00 = 0 
            7:  .att_syntax 
            8:  .file "x86_vendor_intrinsics.69a748d897a0c521-cgu.0" 
            9:  .def test_packus_epi16; 
           10:  .scl 2; 
           11:  .type 32; 
           12:  .endef 
           13:  .section .text,"xr",one_only,test_packus_epi16,unique,0 
           14:  .globl test_packus_epi16 
           15:  .p2align 4 
           16: test_packus_epi16: 
check:16'0                      {   search range start (exclusive)
check:16'1                          error: no match found in search range
           17:  movdqa (%rcx), %xmm0 
           18:  packuswb (%rdx), %xmm0 
check:16'2      ?                        possible intended match
           19:  retq 
           20:  
check:16'3      } search range end (exclusive)
>>>>>>

------------------------------------------

error: verification with 'FileCheck' failed
status: exit code: 1
command: PATH=";C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36231\bin\HostX64\x64;C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36231\bin\HostX64\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\runneradmin\bin;D:\a\rust\rust\ninja;D:\a\rust\rust\sccache;C:\Program Files\MongoDB\Server\7.0\bin;C:\vcpkg;C:\tools\zstd;C:\hostedtoolcache\windows\stack\3.11.1\x64;C:\cabal\bin;C:\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.6.1\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\usr\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.24.13\x64\bin;C:\hostedtoolcache\windows\Python\3.12.10\x64\Scripts;C:\hostedtoolcache\windows\Python\3.12.10\x64;C:\hostedtoolcache\windows\Ruby\3.3.12\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\17.0.20-101\x64\bin;C:\Program Files\ImageMagick-7.1.2-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\Microsoft SQL Server\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\dotnet;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Microsoft SQL Server\170\DTS\Binn;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.16\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI;C:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2;C:\Program Files\Amazon\SessionManagerPlugin\bin;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\mongosh;C:\Program Files\PowerShell\7;C:\Program Files\LLVM\bin;C:\Program Files (x86)\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36231\bin\HostX64\x64" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\llvm\\bin\\FileCheck.exe" "--input-file" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\test\\assembly-llvm\\x86-vendor-intrinsics\\x86-vendor-intrinsics.s" "D:\\a\\rust\\rust\\tests\\assembly-llvm\\x86-vendor-intrinsics.rs" "--check-prefix=CHECK" "--allow-unused-prefixes" "--dump-input-context" "100"
stdout: none
--- stderr -------------------------------
D:\a\rust\rust\tests\assembly-llvm\x86-vendor-intrinsics.rs:16:12: error: CHECK: expected string not found in input
 // CHECK: .cfi_startproc
           ^
D:\a\rust\rust\build\x86_64-pc-windows-msvc\test\assembly-llvm\x86-vendor-intrinsics\x86-vendor-intrinsics.s:16:19: note: scanning from here
test_packus_epi16:
                  ^
D:\a\rust\rust\build\x86_64-pc-windows-msvc\test\assembly-llvm\x86-vendor-intrinsics\x86-vendor-intrinsics.s:18:2: note: possible intended match here
 packuswb (%rdx), %xmm0
 ^

Input file: D:\a\rust\rust\build\x86_64-pc-windows-msvc\test\assembly-llvm\x86-vendor-intrinsics\x86-vendor-intrinsics.s
Check file: D:\a\rust\rust\tests\assembly-llvm\x86-vendor-intrinsics.rs

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1:  .def @feat.00; 
            2:  .scl 3; 
            3:  .type 0; 
            4:  .endef 
            5:  .globl @feat.00 
            6: @feat.00 = 0 
            7:  .att_syntax 
            8:  .file "x86_vendor_intrinsics.69a748d897a0c521-cgu.0" 
            9:  .def test_packus_epi16; 
           10:  .scl 2; 
           11:  .type 32; 
           12:  .endef 
           13:  .section .text,"xr",one_only,test_packus_epi16,unique,0 
           14:  .globl test_packus_epi16 
           15:  .p2align 4 
           16: test_packus_epi16: 
check:16'0                      {   search range start (exclusive)
check:16'1                          error: no match found in search range
           17:  movdqa (%rcx), %xmm0 
           18:  packuswb (%rdx), %xmm0 
check:16'2      ?                        possible intended match
           19:  retq 
           20:  
check:16'3      } search range end (exclusive)
>>>>>>
------------------------------------------

---- [assembly] tests\assembly-llvm\x86-vendor-intrinsics.rs stdout end ----

failures:
    [assembly] tests\assembly-llvm\x86-vendor-intrinsics.rs

test result: FAILED. 703 passed; 1 failed; 71 ignored; 0 measured; 0 filtered out; finished in 47.49s

Some tests failed in compiletest suite=assembly-llvm mode=assembly host=x86_64-pc-windows-msvc target=x86_64-pc-windows-msvc
Bootstrap failed while executing `test --stage 2 --skip=compiler --skip=src --skip=src/tools/linkchecker`
Currently active steps:
test::AssemblyLlvm { test_compiler: Compiler { stage: 2, host: x86_64-pc-windows-msvc, forced_compiler: false }, target: x86_64-pc-windows-msvc } at src\bootstrap\src\core\build_steps\test.rs:2043
test::Compiletest { test_compiler: Compiler { stage: 2, host: x86_64-pc-windows-msvc, forced_compiler: false }, target: x86_64-pc-windows-msvc, mode: assembly, suite: "assembly-llvm", path: "tests/assembly-llvm", compare_mode: None } at src\bootstrap\src\core\build_steps\test.rs:2043
Build completed unsuccessfully in 1:35:04
make: *** [Makefile:115: ci-msvc-py] Error 1
  local time: Sun Sep  6 16:33:14 CUT 2026
  network time: Sun, 06 Sep 2026 16:33:14 GMT
##[error]Process completed with exit code 2.
##[group]Run echo "disk usage:"
echo "disk usage:"

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-stdlib-semver-check failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
##[endgroup]
[TIMING:end] doc::Std { build_compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: x86_64-unknown-linux-gnu, format: Json, crates: [] } -- 50.324
Checking semver compatibility of core
cargo-semver-checks found semver breakage in core
    Checking <unknown> v1.100.0-nightly (da47efd27 2026-09-06) -> v1.100.0-nightly (7392e33bc 2026-09-06) (assume minor change)
     Checked [   4.977s] 196 checks: 195 pass, 1 fail, 0 warn, 58 skip

     Summary semver requires new major version: 1 major and 0 minor checks failed
    Finished [   6.513s] <unknown>


--- failure trait_no_longer_dyn_compatible: trait no longer dyn compatible ---

Description:
Trait is no longer dyn compatible, which breaks `dyn Trait` usage.
        ref: https://doc.rust-lang.org/stable/reference/items/traits.html#object-safety
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.50.0/src/lints/trait_no_longer_dyn_compatible.ron

Failed in:
  trait VaArgSafe in file library/core/src/ffi/va_list.rs:313

Bootstrap failed while executing `test std-semver-check --set rust.stdlib-semver-baseline=da47efd27287edb02eed0b5a178a165c8f258e37`

Important

For more information how to resolve CI failures of this job, visit this link.

@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 6, 2026
@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 7392e33 failed: CI. Failed job:

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 6, 2026
@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

PR #162374, which is a member of this rollup, was unapproved.

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 6, 2026
@rust-bors rust-bors Bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 6, 2026
@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

💔 Test for d225a94 failed: CI. Failed jobs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tidy Area: The tidy tool rollup A PR which is a rollup S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants