Open
Description
Turns out #123757 was implemented by duplicating existing information previously added for #82499:
- Attributes are marked as unsafe here:
rust/compiler/rustc_feature/src/builtin_attrs.rs
Lines 431 to 433 in 624c071
- But separately, the unsafety checker has a list of unsafe attributes here:
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.