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
Copy link
Copy Markdown
Contributor

@JonathanBrouwer JonathanBrouwer commented Jun 2, 2026

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

rustbot commented Jun 2, 2026

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbot rustbot 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
@JonathanBrouwer JonathanBrouwer changed the title Cleanup attribute target checking diagnostics Clean up attribute target checking diagnostics Jun 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!
Copy link
Copy Markdown
Contributor Author

@JonathanBrouwer JonathanBrouwer Jun 2, 2026

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 JonathanBrouwer force-pushed the cleanup-target-checking branch from 84074ab to 397dd46 Compare June 2, 2026 08:10
@GuillaumeGomez
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Contributor

@mejrs mejrs left a comment

Choose a reason for hiding this comment

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

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Jun 2, 2026

📌 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-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 Jun 2, 2026
rust-bors Bot 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 Bot 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-bors Bot merged commit fcaf72b into rust-lang:main Jun 2, 2026
12 checks passed
@rustbot rustbot 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant 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