Skip to content

convert non-generic diagnostic attribute placeholders to snake_case - #164269

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
mejrs:snake_case_placeholders
Oct 14, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
mejrs:snake_case_placeholders

Conversation

@mejrs

@mejrs mejrs commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

In #163636 (comment) there's general consensus that these should be snake_case. There's not consensus about the names, only that they should be snake_case. So I'll leave that for later.

(this doesn't affect stable diagnostic attributes)

@rustbot

rustbot commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann, @JonathanBrouwer

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann, @JonathanBrouwer

Some changes occurred in compiler/rustc_attr_ir

cc @jdonszelmann, @JonathanBrouwer

@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. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 13, 2026
@rustbot

rustbot commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

r? @mu001999

rustbot has assigned @mu001999.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 77 candidates
  • Random selection from 17 candidates

@mejrs
mejrs force-pushed the snake_case_placeholders branch from ac56d57 to c70ad62 Compare October 13, 2026 15:15
@mejrs mejrs mentioned this pull request Oct 13, 2026
6 of 7 tasks
Comment thread compiler/rustc_attr_ir/src/diagnostic.rs Outdated
Comment thread compiler/rustc_attr_ir/src/diagnostic.rs
Comment thread compiler/rustc_attr_ir/src/diagnostic.rs Outdated
@mejrs
mejrs force-pushed the snake_case_placeholders branch from c70ad62 to 8def69b Compare October 13, 2026 16:13

@mu001999 mu001999 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.

LGTM! r=me after ci green

View changes since this review

@mejrs

mejrs commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

fwiw you can now approve and bors will automagically wait for green ci :)

@bors r=mu001999

@rust-bors

rust-bors Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 8def69b has been tentatively approved by mu001999

It will be put into the queue for this repository once PR CI succeeds.

@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 Oct 13, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Oct 13, 2026
…u001999

convert non-generic diagnostic attribute placeholders to snake_case

In rust-lang#163636 (comment) there's general consensus that these should be snake_case. There's not consensus about the names, only that they should be snake_case. So I'll leave that for later.

(this doesn't affect stable diagnostic attributes)
rust-bors Bot pushed a commit that referenced this pull request Oct 13, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #164040 (move `BoundVarReplacer` into rustc_type_ir)
 - #162934 (bootstrap: Let test-float-parse follow --target)
 - #164269 (convert non-generic diagnostic attribute placeholders to snake_case)
 - #160050 (Fix a splat legacy demangling display bug)
 - #163383 (Provide context span pointing at trait/item when talking about assoc items)
 - #164023 (make `with_post_analysis_normalized` invalidate rigid aliases)
 - #164041 (Add regression test for dead-code with external trait impl)
 - #164166 (Ignore thread-related tests for UEFI)
 - #164229 (Update outdated `hir_attrs` doc)
 - #164244 (Remove the 'sup' method from 'At' and migrate uses to 'sup_raw')
 - #164257 (Add transmutability test to cover for superseded PR)
 - #164263 (Fix expected output for x86-64-sysv64-arg-ext.apple.stderr)
@rust-bors
rust-bors Bot merged commit 4b679d4 into rust-lang:main Oct 14, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 14, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 14, 2026
Rollup merge of #164269 - mejrs:snake_case_placeholders, r=mu001999

convert non-generic diagnostic attribute placeholders to snake_case

In #163636 (comment) there's general consensus that these should be snake_case. There's not consensus about the names, only that they should be snake_case. So I'll leave that for later.

(this doesn't affect stable diagnostic attributes)
wasd243 pushed a commit to wasd243/rust-clippy that referenced this pull request Oct 15, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - rust-lang/rust#164040 (move `BoundVarReplacer` into rustc_type_ir)
 - rust-lang/rust#162934 (bootstrap: Let test-float-parse follow --target)
 - rust-lang/rust#164269 (convert non-generic diagnostic attribute placeholders to snake_case)
 - rust-lang/rust#160050 (Fix a splat legacy demangling display bug)
 - rust-lang/rust#163383 (Provide context span pointing at trait/item when talking about assoc items)
 - rust-lang/rust#164023 (make `with_post_analysis_normalized` invalidate rigid aliases)
 - rust-lang/rust#164041 (Add regression test for dead-code with external trait impl)
 - rust-lang/rust#164166 (Ignore thread-related tests for UEFI)
 - rust-lang/rust#164229 (Update outdated `hir_attrs` doc)
 - rust-lang/rust#164244 (Remove the 'sup' method from 'At' and migrate uses to 'sup_raw')
 - rust-lang/rust#164257 (Add transmutability test to cover for superseded PR)
 - rust-lang/rust#164263 (Fix expected output for x86-64-sysv64-arg-ext.apple.stderr)
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. 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.

3 participants