Skip to content

Improve diagnostics for notable-trait color arguments - #165298

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
pkondzior:notable-trait-color-main
Nov 2, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
pkondzior:notable-trait-color-main

Conversation

@pkondzior

Copy link
Copy Markdown
Contributor

Invalid color names and duplicate arguments previously shared a generic syntax diagnostic, making the underlying mistake difficult to identify.

Addresses #164728

cc @notriddle

Invalid color names and duplicate arguments previously shared a generic
syntax diagnostic, making the underlying mistake difficult to identify.
@rustbot

rustbot commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_attr_parsing

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-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Nov 1, 2026
@rustbot

rustbot commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project has assigned @khyperia (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks.

Please see the contribution instructions and our LLM policy for more information.

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 22 candidates

@JonathanBrouwer

Copy link
Copy Markdown
Member

r? me

@rustbot rustbot assigned JonathanBrouwer and unassigned khyperia Nov 1, 2026

@JonathanBrouwer JonathanBrouwer 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-bors Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

📌 Commit c834a80 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 Nov 2, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 2, 2026
…, r=JonathanBrouwer

Improve diagnostics for notable-trait color arguments

Invalid color names and duplicate arguments previously shared a generic syntax diagnostic, making the underlying mistake difficult to identify.

Addresses rust-lang#164728

cc @notriddle
jhpratt added a commit to jhpratt/rust that referenced this pull request Nov 2, 2026
…, r=JonathanBrouwer

Improve diagnostics for notable-trait color arguments

Invalid color names and duplicate arguments previously shared a generic syntax diagnostic, making the underlying mistake difficult to identify.

Addresses rust-lang#164728

cc @notriddle
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup of 15 pull requests

Successful merges:

 - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`)
 - #165331 (miri subtree update)
 - #165211 (Streamline function_item_references lint)
 - #165273 (Add some docs for our allocator `unstable_feature_bound`s)
 - #165279 (explicitly test the win32 symbol byte count suffix)
 - #162688 (Fix invalid suggestions and misleading notes for imports)
 - #165198 (expand the docs of `Complex<T>`)
 - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`)
 - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len})
 - #165284 (Ensure the display impl of uXX is small with optimize_for_size)
 - #165287 (Add example of implementing Allocator to its docs)
 - #165297 (Cleanup `rustdoc-html` tests)
 - #165298 (Improve diagnostics for notable-trait color arguments)
 - #165336 (Refactor `analyze_attr` to use a match)
 - #165338 (`rust-analyzer` subtree update)
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup of 15 pull requests

Successful merges:

 - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`)
 - #165331 (miri subtree update)
 - #165211 (Streamline function_item_references lint)
 - #165273 (Add some docs for our allocator `unstable_feature_bound`s)
 - #165279 (explicitly test the win32 symbol byte count suffix)
 - #162688 (Fix invalid suggestions and misleading notes for imports)
 - #165198 (expand the docs of `Complex<T>`)
 - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`)
 - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len})
 - #165284 (Ensure the display impl of uXX is small with optimize_for_size)
 - #165287 (Add example of implementing Allocator to its docs)
 - #165297 (Cleanup `rustdoc-html` tests)
 - #165298 (Improve diagnostics for notable-trait color arguments)
 - #165336 (Refactor `analyze_attr` to use a match)
 - #165338 (`rust-analyzer` subtree update)
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`)
 - #165211 (Streamline function_item_references lint)
 - #165273 (Add some docs for our allocator `unstable_feature_bound`s)
 - #165279 (explicitly test the win32 symbol byte count suffix)
 - #162688 (Fix invalid suggestions and misleading notes for imports)
 - #165198 (expand the docs of `Complex<T>`)
 - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`)
 - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len})
 - #165284 (Ensure the display impl of uXX is small with optimize_for_size)
 - #165287 (Add example of implementing Allocator to its docs)
 - #165297 (Cleanup `rustdoc-html` tests)
 - #165298 (Improve diagnostics for notable-trait color arguments)
 - #165336 (Refactor `analyze_attr` to use a match)
 - #165338 (`rust-analyzer` subtree update)
@rust-bors
rust-bors Bot merged commit 2f27ab1 into rust-lang:main Nov 2, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Nov 2, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup merge of #165298 - pkondzior:notable-trait-color-main, r=JonathanBrouwer

Improve diagnostics for notable-trait color arguments

Invalid color names and duplicate arguments previously shared a generic syntax diagnostic, making the underlying mistake difficult to identify.

Addresses #164728

cc @notriddle
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-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.

4 participants