Skip to content

Clean up attribute target checking diagnostics - #157291

Merged
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
JonathanBrouwer:cleanup-target-checking
Jun 2, 2026
Merged

Clean up attribute target checking diagnostics#157291
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
JonathanBrouwer:cleanup-target-checking

Conversation

@JonathanBrouwer

@JonathanBrouwerJonathanBrouwer commented Jun 2, 2026

Copy link
Copy Markdown
Member

Split off from me trying to process your review comments in #157215

Thanks to @GuillaumeGomez for making this possible <3

r? @mejrs

@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbotrustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 2, 2026
@JonathanBrouwerJonathanBrouwer changed the title Cleanup attribute target checking diagnosticsClean up attribute target checking diagnosticsJun 2, 2026
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= help: `#[inline]` can only be applied to functions
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

@JonathanBrouwerJonathanBrouwerJun 2, 2026

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reordering is unavoidable with this cleanup sadly, but also imo the new order is slightly better, putting the "previously accepted" last since it has least to do with the rest of the diagnostic

View changes since the review

@JonathanBrouwer
JonathanBrouwerforce-pushed the cleanup-target-checking branch from 84074ab to 397dd46CompareJune 2, 2026 08:10
@GuillaumeGomez

Copy link
Copy Markdown
Member

Looks good to me, thanks! Please wait for @mejrs review though. ;)

@mejrsmejrs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors

rust-borsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 397dd46 has been approved by mejrs

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened.

@rust-borsrust-borsBot 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 Jun 2, 2026
rust-borsBot pushed a commit that referenced this pull request Jun 2, 2026
…uwer
Rollup of 14 pull requests
Successful merges:
- #156467 (mark the 'import linkage' statics as unnamed_addr)
- #156923 (Couple of diagnostics improvements for EII)
- #157240 (Enable Enzyme for aarch64-apple-darwin)
- #157244 (Privacy: tweak macros + more tests)
- #157276 (miri subtree update)
- #157130 (Use a `ArrayVec` in `CastTarget`)
- #157131 (Add regression test for issue #144888)
- #157195 (Move feature gating to the new attr parsing infrastructure)
- #157233 (rustdoc: Fix trait impl ordering)
- #157256 (tests: adapt for LLVM codegen change)
- #157265 (Update books)
- #157277 (triagebot.toml: add LawnGnome to libs reviewers)
- #157291 (Clean up attribute target checking diagnostics)
- #157301 (Remove unused import from a test)
rust-borsBot pushed a commit that referenced this pull request Jun 2, 2026
…uwer
Rollup of 14 pull requests
Successful merges:
- #156467 (mark the 'import linkage' statics as unnamed_addr)
- #156923 (Couple of diagnostics improvements for EII)
- #157240 (Enable Enzyme for aarch64-apple-darwin)
- #157244 (Privacy: tweak macros + more tests)
- #157276 (miri subtree update)
- #157130 (Use a `ArrayVec` in `CastTarget`)
- #157131 (Add regression test for issue #144888)
- #157195 (Move feature gating to the new attr parsing infrastructure)
- #157233 (rustdoc: Fix trait impl ordering)
- #157256 (tests: adapt for LLVM codegen change)
- #157265 (Update books)
- #157277 (triagebot.toml: add LawnGnome to libs reviewers)
- #157291 (Clean up attribute target checking diagnostics)
- #157301 (Remove unused import from a test)
@rust-bors
rust-borsBot merged commit fcaf72b into rust-lang:mainJun 2, 2026
12 checks passed
@rustbotrustbot added this to the 1.98.0 milestone Jun 2, 2026
rust-timer added a commit that referenced this pull request Jun 2, 2026
Rollup merge of #157291 - JonathanBrouwer:cleanup-target-checking, r=mejrs
Clean up attribute target checking diagnostics
Split off from me trying to process your review comments in #157215
Thanks to @GuillaumeGomez for making this possible <3
r? @mejrs
pullBot pushed a commit to xtqqczze/rust-lang-miri that referenced this pull request Jun 4, 2026
…uwer
Rollup of 14 pull requests
Successful merges:
- rust-lang/rust#156467 (mark the 'import linkage' statics as unnamed_addr)
- rust-lang/rust#156923 (Couple of diagnostics improvements for EII)
- rust-lang/rust#157240 (Enable Enzyme for aarch64-apple-darwin)
- rust-lang/rust#157244 (Privacy: tweak macros + more tests)
- rust-lang/rust#157276 (miri subtree update)
- rust-lang/rust#157130 (Use a `ArrayVec` in `CastTarget`)
- rust-lang/rust#157131 (Add regression test for issue rust-lang/rust#144888)
- rust-lang/rust#157195 (Move feature gating to the new attr parsing infrastructure)
- rust-lang/rust#157233 (rustdoc: Fix trait impl ordering)
- rust-lang/rust#157256 (tests: adapt for LLVM codegen change)
- rust-lang/rust#157265 (Update books)
- rust-lang/rust#157277 (triagebot.toml: add LawnGnome to libs reviewers)
- rust-lang/rust#157291 (Clean up attribute target checking diagnostics)
- rust-lang/rust#157301 (Remove unused import from a test)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@JonathanBrouwer@rustbot@GuillaumeGomez@mejrs