Skip to content

Debug assert that parsed attributes are in the BUILTIN_ATTRIBUTE_MAP#157471

Open
JonathanBrouwer wants to merge 1 commit into
rust-lang:mainfrom
JonathanBrouwer:builtin-map-assertion
Open

Debug assert that parsed attributes are in the BUILTIN_ATTRIBUTE_MAP#157471
JonathanBrouwer wants to merge 1 commit into
rust-lang:mainfrom
JonathanBrouwer:builtin-map-assertion

Conversation

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

There are currently two sources of truth for which attributes are builtin, the BUILTIN_ATTRIBUTE_MAP and the list of parsers. The long term goal is to get rid of the BUILTIN_ATTRIBUTE_MAP , but because of the way that crates depend on eachother this is not trivial. This PR makes sure the sources don't diverge.

r? @mejrs

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 5, 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 5, 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