Rollup of 14 pull requests#159931
Open
JonathanBrouwer wants to merge 63 commits into
Open
Conversation
…ring.rs to follow the style guide
This updates the rust-version file to da86f4d.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: rust-lang/rust@da86f4d Filtered ref: rust-lang/rustc-dev-guide@af919e8 Upstream diff: rust-lang/rust@390279b...da86f4d This merge was created using https://github.com/rust-lang/josh-sync.
Add warning for breakage hazard for introducing new builtin attrs
sembr a few files
Fix up `#[linkage]` target checking Fixes rust-lang#134451 r? @JonathanBrouwer
…r=mejrs,JonathanBrouwer Check unsafe impls on safe EIIs Tracking issue: rust-lang#125418 Unsafe EIIs require implementations to use `#[unsafe(...)]`, but safe EIIs currently accept this form as well. This should be rejected, just like `unsafe impl` on a safe trait. This also fixes existing EII UI tests using this pattern and adds a new regression test.
…-never-coercion, r=jieyouxu Add tuple never coercion collection regression test Fixes rust-lang#100727 It's fixed by PR rust-lang#147834
Remove redundant `#[rustc_paren_sugar]` feature gate It is already gated on `rustc_attrs`. Alternatively we could update attribute parsing to optionally require multiple features, but that seems unnecessary. r? @JonathanBrouwer
rustc_parse: Stop returning `Option` from statement parsing `parse_stmt_without_recovery` had one corner case in which it returned `Ok(None)` - when parsing immediately encountered a closing brace `}`, possibly after parsing outer attributes. It is simpler to never call `parse_stmt_without_recovery` in such contexts than deal with a possibility of no statement being returned without an error. So this PR changes the function's return type from `PResult<'a, Option<Stmt>>` to `PResult<'a, Stmt>` and adjusts one call site to check for a closing brace.
Updated expect messages for `CString` struct and method documentation Completes a task with rust-lang#159751. Updates the expect messages in `library/alloc/src/ffi/c_str.rs`.
More cleanup in `rustc_attr_parsing` Follow up to rust-lang#159508. r? @mejrs
Update expect messages in library/alloc/boxed.rs and library/alloc/string.rs to follow the style guide Related issue: rust-lang#159751 Updates the expect messages in library/alloc/boxed.rs and library/alloc/string.rs to follow the style guide.
…uwer Split multiline derives into std/rustc macros Misc cleanup
…nBrouwer Fix `find_attr` hygiene and `rustc_hir` cleanups In particular, `extern crate self as rustc_hir;` leads to very noisy import suggestions if you get an import wrong. Also flatten the `nested_filter` module which seemed to exist just to avoid `None` / `Option:None` nameres conflicts
rustc-dev-guide subtree update Subtree update of `rustc-dev-guide` to rust-lang/rustc-dev-guide@f5333a6. Created using https://github.com/rust-lang/josh-sync. r? @ghost
…target, r=GuillaumeGomez Clarify that the expected runtime symbols signature is for the current target only Some of the signatures expected by our runtime symbols are slightly different from one target to the other one (`i8` vs `u8`), and while the original definition uses type alias, they are not recorded and displayed in the diagnostic. So, to avoid any ambiguity let's add a small note that the displayed signature is only for the current target. r? @GuillaumeGomez
…mejrs Fix error in diagnostic on_unmatched_args fixes rust-lang#159886
rename abort_unwind → abort_on_unwind As suggested in the tracking issue (rust-lang#130338). r? @nia-e Cc @rust-lang/libs-api
Contributor
Author
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Jul 25, 2026
Rollup of 14 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-*
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
#[linkage]target checking #159617 (Fix up#[linkage]target checking)#[rustc_paren_sugar]feature gate #159826 (Remove redundant#[rustc_paren_sugar]feature gate)Optionfrom statement parsing #159849 (rustc_parse: Stop returningOptionfrom statement parsing)CStringstruct and method documentation #159853 (Updated expect messages forCStringstruct and method documentation)rustc_attr_parsing#159875 (More cleanup inrustc_attr_parsing)find_attrhygiene andrustc_hircleanups #159893 (Fixfind_attrhygiene andrustc_hircleanups)r? @ghost
Create a similar rollup