We have two independent checks for "is this attribute unsafe" #131801
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Turns out #123757 was implemented by duplicating existing information previously added for #82499:
rust/compiler/rustc_feature/src/builtin_attrs.rs
Lines 431 to 433 in 624c071
rust/compiler/rustc_lint/src/builtin.rs
Lines 293 to 303 in c682aa1
and here:
rust/compiler/rustc_lint/src/builtin.rs
Lines 307 to 317 in c682aa1
and here:
rust/compiler/rustc_lint/src/builtin.rs
Lines 336 to 341 in c682aa1
This should be cleaned up into a single source of truth for which attributes are unsafe.
The text was updated successfully, but these errors were encountered: