Skip to content

Remove AttributeSafety from BUILTIN_ATTRIBUTES#155354

Open
JonathanBrouwer wants to merge 1 commit intorust-lang:mainfrom
JonathanBrouwer:attr-safety-port-2
Open

Remove AttributeSafety from BUILTIN_ATTRIBUTES#155354
JonathanBrouwer wants to merge 1 commit intorust-lang:mainfrom
JonathanBrouwer:attr-safety-port-2

Conversation

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

@JonathanBrouwer JonathanBrouwer commented Apr 15, 2026

Encodes the expected attribute safety in the attribute parsers, rather than in BUILTIN_ATTRIBUTES, with the goal of removing BUILTIN_ATTRIBUTES soon.
We can remove the old attribute safety logic already because unparsed attributes, just like the as of yet unparsed lint attributes, need to be safe.

r? @jdonszelmann (or @mejrs if you feel like doing it, since you are in T-compiler now 🎉)

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 15, 2026
@JonathanBrouwer JonathanBrouwer marked this pull request as ready for review April 15, 2026 19:27
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 15, 2026

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 15, 2026
@JonathanBrouwer
Copy link
Copy Markdown
Contributor Author

@bors try jobs=i686-msvc-2
Just to make 100% sure that we're not having this issue again

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Apr 15, 2026
Remove AttributeSafety from BUILTIN_ATTRIBUTES


try-job: i686-msvc-2
@Bryntet
Copy link
Copy Markdown
Contributor

Bryntet commented Apr 15, 2026

Looking forward to this!

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 15, 2026

☀️ Try build successful (CI)
Build commit: b8938cd (b8938cd05bdf644cb12056036e9060d13b672b21, parent: 9620eae30ab7614dcb72d44c4ce1dac497f6ae18)

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.

4 participants