about summary refs log tree commit diff
path: root/tests/ui/unsafe-fields/unsafe-fields-parse.rs
AgeCommit message (Collapse)AuthorLines
2024-12-05do not implement unsafe auto traits for types with unsafe fieldsJack Wrenn-0/+10
If a type has unsafe fields, its safety invariants are not simply the conjunction of its field types' safety invariants. Consequently, it's invalid to reason about the safety properties of these types in a purely structural manner — i.e., the manner in which `auto` traits are implemented. Makes progress towards #132922.