diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-06 21:21:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 21:21:07 +0100 |
| commit | 6457761f8071e50cbffe4fe0476fb59c059e7c1e (patch) | |
| tree | acbff61a184fb6431904be5f0e721f47c9bf9f1a /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 8c78d7a02f29f35ae7ac8252424d7c3e99c7ba41 (diff) | |
| parent | a122dde217459c1decbce3452323807154763206 (diff) | |
| download | rust-6457761f8071e50cbffe4fe0476fb59c059e7c1e.tar.gz rust-6457761f8071e50cbffe4fe0476fb59c059e7c1e.zip | |
Rollup merge of #133934 - jswrenn:unsafe-fields-auto-traits, r=compiler-errors
Do not implement unsafe auto traits for types with unsafe fields 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. Consequently, auto implementations of unsafe auto traits should not be generated for types with unsafe fields. Tracking: #132922 r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
