Skip to content

Make OnDuplicate::Error the default for attributes#155308

Open
JonathanBrouwer wants to merge 2 commits intorust-lang:mainfrom
JonathanBrouwer:duplicate_errs
Open

Make OnDuplicate::Error the default for attributes#155308
JonathanBrouwer wants to merge 2 commits intorust-lang:mainfrom
JonathanBrouwer:duplicate_errs

Conversation

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

This makes two changes, in separate commits for reviewability:

  • Changes all unstable attributes that are currently OnDuplicate::Warn to error.
  • Makes OnDuplicate::Error the default and removes the explicit ON_DUPLICATE for ones that currently already error

r? @jdonszelmann

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 14, 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 Apr 14, 2026
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-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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants