rust/compiler/rustc_trait_selection/src
Jack Wrenn a122dde217 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.

Makes progress towards #132922.
2024-12-05 23:52:21 +00:00
..
error_reporting Rollup merge of #133843 - estebank:empty-semi-sugg, r=jieyouxu 2024-12-05 07:29:56 +01:00
errors ty::BrK -> ty::BoundRegionKind::K 2024-11-04 04:45:52 +00:00
solve Assert that obligations are empty before deeply normalizing 2024-12-02 22:51:18 +00:00
traits do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00
errors.rs Make precise capturing suggestion machine-applicable only if it has not APITs 2024-11-12 04:08:34 +00:00
infer.rs remove Ty::is_copy_modulo_regions 2024-12-02 13:57:56 +01:00
lib.rs Stabilize the map/value methods on ControlFlow 2024-09-25 19:00:17 -07:00
regions.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
solve.rs impossible obligations check fast path 2024-10-10 06:09:50 -04:00