Skip to content

Rollup of 21 pull requests - #160678

Closed
JonathanBrouwer wants to merge 111 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-8WH5UMp
Closed

Rollup of 21 pull requests#160678
JonathanBrouwer wants to merge 111 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-8WH5UMp

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Contributor

Successful merges:

r? @ghost

Create a similar rollup

sjwang05 and others added 30 commits June 12, 2026 22:03
Proving `T::Assoc<_>: Sized` while a where-clause bound `T::Assoc<u8>: Sized`
was in scope used to over-eagerly infer the unconstrained argument to `u8`,
causing a spurious "mismatched types" error. It should compile; lock that in.
Add tests for generic function pointers
Change FnPtr tests to use assert_eq!() rather than println!()
don't force intrinsic results into memory
This updates the rust-version file to 7218ebe.
Move command-result printing into a helper and keep CLI loop control at the call site.
Consume Priroda's --dap flag before handing arguments to rustc_driver::run_compiler, then dispatch the freshly-created PrirodaContext to either the existing CLI loop or a new DAP loop stub.
Add FirstUserSourceLocation ResumeMode variant that stops when the
interpreter reaches a user-relevant frame with a source location.
This gives the DAP frontend an entry-stop primitive that skips
Miri-internal and std frames.
platform-support/netbsd.md: No longer mention 8.x, due to EoL.

Also change the pkgsrc-wip link to indicate a more current rust version.

To be re-visited again once 9.x reaches end of maintnance and EoL by the end of the current month.

<!-- homu-ignore:start -->

- [ x] I did not use an LLM to create a change in this PR.
- [ ] I used an LLM to create a change in this PR, and I have explained below how it was used.
derive(Diagnostic): link to proper docs

I confirmed that this makes the doc comment show up in RA when hovering a `derive(Diagnostic)`.

Also it's not correct that `note` etc can only be used on the struct, those attributes also work on (some) fields. So also fix the comment.
Clean up some manual debug impls

Some of these can just be derives. Others omitted fields, deliberately or not.

For example, the annotate emitter debug now looks like:
```rust
AnnotateSnippetEmitter {
    dst: <writer@0x9069b55c60>,
    sm: Some(
        SourceMap {
            files: RwLock(
                RwLock {
                    data: [
                        "C:\\Users\\bruno\\Rust\\rust\\tests\\ui\\consts\\bad-array-size-in-type-err.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\lib.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\../../core/src/attribute_docs.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\../../core/src/keyword_docs.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\../../core/src/primitive_docs.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\macros.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\thread\\local.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\prelude\\mod.rs",
                        "/rustc/FAKE_PREFIX\\library\\std\\src\\prelude\\v1.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\lib.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\clone.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\marker.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\default.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\cmp.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\mod.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\drop.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\function.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\async_function.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\convert\\mod.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\mod.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\mod.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\double_ended.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\exact_size.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\collect.rs",
                        "/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\iterator.rs",
                        "/rustc/FAKE_PREFIX\\library\\alloc\\src\\lib.rs",
                        "/rustc/FAKE_PREFIX\\library\\alloc\\src\\borrow.rs",
                        "/rustc/FAKE_PREFIX\\library\\alloc\\src\\string.rs",
                    ],
                },
            ),
            file_loader: <file_loader@0x1f813386448>,
            path_mapping: FilePathMapping {
                mapping: [],
                filename_remapping_scopes: RemapPathScopeComponents(
                    MACRO | DIAGNOSTICS | DEBUGINFO | COVERAGE | DOCUMENTATION,
                ),
            },
            working_dir: RealFileName {
                local: Some(
                    InnerRealFileName {
                        name: "C:\\Users\\bruno\\Rust\\rust",
                        working_directory: "",
                        embeddable_name: "C:\\Users\\bruno\\Rust\\rust",
                    },
                ),
                maybe_remapped: InnerRealFileName {
                    name: "C:\\Users\\bruno\\Rust\\rust",
                    working_directory: "",
                    embeddable_name: "C:\\Users\\bruno\\Rust\\rust",
                },
                scopes: RemapPathScopeComponents(
                    0x0,
                ),
            },
            hash_kind: Sha256,
            checksum_hash_kind: None,
        },
    ),
    short_message: false,
    ui_testing: true,
    ignored_directories_in_source_blocks: [
        "C:\\Users\\bruno\\.cargo",
        "C:\\Users\\bruno\\Rust\\rust\\vendor",
    ],
    diagnostic_width: None,
    macro_backtrace: false,
    track_diagnostics: false,
    terminal_url: No,
    theme: Ascii,
}
```
…chenyukang

move naked function ui tests

Simply reorganizes some tests.

- [x] I did not use an LLM to create a change in this PR.
- [ ] I used an LLM to create a change in this PR, and I have explained below how it was used.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Aug 7, 2026
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs A-rustdoc-json Area: Rustdoc JSON backend O-unix Operating system: Unix-like 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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Aug 7, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Contributor 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-,x86_64-mingw-1,i686-msvc-

@rust-bors

rust-bors Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 31fea29 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 Aug 7, 2026
@rust-bors

rust-bors Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

⌛ Trying commit 31fea29 with merge ccce579

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/31163135213

rust-bors Bot pushed a commit that referenced this pull request Aug 7, 2026
Rollup of 21 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-*
try-job: x86_64-mingw-1
try-job: i686-msvc-*
@rust-bors

rust-bors Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

⌛ Testing commit 31fea29 with merge 7702064...

Workflow: https://github.com/rust-lang/rust/actions/runs/31164173562

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

Rollup of 21 pull requests

Successful merges:

 - #159784 (Hint that memchr returns an in-bounds index)
 - #150885 (Revive L4Re target)
 - #159643 (Add support for splatted function pointers)
 - #160433 (delegation: add support for wrapping of the return value with `From::from`)
 - #160530 (refactor handling of target features in Session)
 - #160606 (bootstrap: Store and use an explicit CheckKind in `check::Rustc`)
 - #160628 (fix ICE in `suggest_add_reference_to_arg` for non-callable items)
 - #160634 (miri subtree update)
 - #157641 (Do not promote extern statics)
 - #158904 (Fix FutureDropPoll shim for by-move async closures)
 - #160103 (Add regression test for GAT bound mismatched type error)
 - #160335 (dlopen offload)
 - #160445 (codegen: classify localized MSVC linker progress as linker_info)
 - #160499 (rustc_resolve: move diagnostic attribute linting to attr parsing)
 - #160504 (cleanup borrowck, improve c-variadic handling)
 - #160577 (expand: Feature gate AST-based attribute macros on expressions and statements)
 - #160587 (Add regression test for associated type outlives bound at call site)
 - #160625 (platform-support/netbsd.md: No longer mention 8.x, due to EoL.)
 - #160636 (derive(Diagnostic): link to proper docs)
 - #160644 (Clean up some manual debug impls)
 - #160649 (move naked function ui tests)
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
---- [ui] tests/ui/asm/naked-functions/unused.rs#aarch64 stdout ----

error in revision `aarch64`: auxiliary build of /checkout/tests/auxiliary/minicore.rs failed to compile: 
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/auxiliary/minicore.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "-Zcodegen-backend=gcc" "--cfg" "aarch64" "--check-cfg" "cfg(test,FALSE,x86_64,aarch64)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/naked-functions/unused.aarch64/libminicore.rlib" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Cpanic=abort" "-Cforce-unwind-tables=yes" "--target" "aarch64-unknown-linux-gnu" "--crate-type" "rlib" "-Cpanic=abort"
stdout: none
--- stderr -------------------------------

thread 'rustc' (94727) panicked at compiler/rustc_codegen_gcc/src/lib.rs:228:13:
Could not load libgccjit.so. Attempted paths: [
    "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/aarch64-unknown-linux-gnu/libgccjit.so",
    "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/aarch64-unknown-linux-gnu/libgccjit.so",
]
stack backtrace:
   0:     0x7f10eefafcf1 - <<std[a922ebf19765e731]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[fcafaf7fea7eb619]::fmt::Display>::fmt
   1:     0x7f10eeff5fc8 - core[fcafaf7fea7eb619]::fmt::write
   2:     0x7f10eefc12fc - <std[a922ebf19765e731]::sys::stdio::unix::Stderr as core[fcafaf7fea7eb619]::io::write::Write>::write_fmt
   3:     0x7f10eef74126 - std[a922ebf19765e731]::panicking::default_hook::{closure#0}
   4:     0x7f10eef9c8f1 - std[a922ebf19765e731]::panicking::default_hook
   5:     0x7f10eb0f35a4 - <alloc[f88db76dc45cc659]::boxed::Box<rustc_driver_impl[517f5d31b083d577]::install_ice_hook::{closure#1}> as core[fcafaf7fea7eb619]::ops::function::Fn<(&dyn for<'a, 'b> core[fcafaf7fea7eb619]::ops::function::Fn<(&'a std[a922ebf19765e731]::panic::PanicHookInfo<'b>,), Output = ()> + core[fcafaf7fea7eb619]::marker::Sync + core[fcafaf7fea7eb619]::marker::Send, &std[a922ebf19765e731]::panic::PanicHookInfo)>>::call
   6:     0x7f10eef9cc62 - std[a922ebf19765e731]::panicking::panic_with_hook
   7:     0x7f10eef741d2 - std[a922ebf19765e731]::panicking::panic_handler::{closure#0}
   8:     0x7f10eef6a809 - std[a922ebf19765e731]::sys::backtrace::__rust_end_short_backtrace::<std[a922ebf19765e731]::panicking::panic_handler::{closure#0}, !>
   9:     0x7f10eef75a4d - __rustc[1509cbab35dac130]::rust_begin_unwind
  10:     0x7f10eeff6b0c - core[fcafaf7fea7eb619]::panicking::panic_fmt
  11:     0x7f10dd46269a - <rustc_codegen_gcc[4f4d2d66688b3690]::GccCodegenBackend as rustc_codegen_ssa[e2393933f89261b0]::traits::backend::CodegenBackend>::init
  12:     0x7f10eb1043e0 - rustc_interface[97049c1d00b685a9]::interface::run_compiler::<(), rustc_driver_impl[517f5d31b083d577]::run_compiler::{closure#0}>::{closure#2}
  13:     0x7f10eb0f3ca5 - rustc_span[7d5401867a9b29d8]::create_session_globals_then::<(), rustc_interface[97049c1d00b685a9]::util::run_in_thread_with_globals<rustc_interface[97049c1d00b685a9]::util::run_in_thread_pool_with_globals<rustc_interface[97049c1d00b685a9]::interface::run_compiler<(), rustc_driver_impl[517f5d31b083d577]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  14:     0x7f10eb0ea9a8 - std[a922ebf19765e731]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[97049c1d00b685a9]::util::run_in_thread_with_globals<rustc_interface[97049c1d00b685a9]::util::run_in_thread_pool_with_globals<rustc_interface[97049c1d00b685a9]::interface::run_compiler<(), rustc_driver_impl[517f5d31b083d577]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  15:     0x7f10eb154993 - <std[a922ebf19765e731]::thread::lifecycle::spawn_unchecked<rustc_interface[97049c1d00b685a9]::util::run_in_thread_with_globals<rustc_interface[97049c1d00b685a9]::util::run_in_thread_pool_with_globals<rustc_interface[97049c1d00b685a9]::interface::run_compiler<(), rustc_driver_impl[517f5d31b083d577]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[fcafaf7fea7eb619]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  16:     0x7f10eefac1b8 - <std[a922ebf19765e731]::sys::thread::unix::Thread>::new::thread_start
  17:     0x7f10e966ba83 - <unknown>
  18:     0x7f10e96fd890 - <unknown>
  19:                0x0 - <unknown>

error: the compiler unexpectedly panicked. This is a bug
---
note: please attach the file at `/checkout/obj/rustc-ice-2026-08-07T09_46_10-94717.txt` to your bug report

note: rustc 1.99.0-nightly (51d894e2e 2026-08-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -Z codegen-backend=gcc -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C panic=abort -C force-unwind-tables=yes --crate-type rlib -C panic=abort

query stack during panic:
end of query stack
------------------------------------------

Important

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

@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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 7, 2026
@rust-bors

rust-bors Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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

This rollup was thus unapproved.

Auto build was cancelled due to unapproval. Cancelled workflows:

@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 Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs A-rustdoc-json Area: Rustdoc JSON backend O-unix Operating system: Unix-like rollup A PR which is a rollup 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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.