rust/compiler/rustc_next_trait_solver/src/solve
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
..
assembly support revealing defined opaque post borrowck 2024-11-28 10:40:58 +01:00
eval_ctxt support revealing defined opaque post borrowck 2024-11-28 10:40:58 +01:00
inspect remove unused field 2024-10-22 08:30:09 +02:00
normalizes_to support revealing defined opaque post borrowck 2024-11-28 10:40:58 +01:00
alias_relate.rs Rename tcx to cx 2024-06-25 17:36:52 -04:00
effect_goals.rs Implement ~const Destruct in new solver 2024-11-22 16:54:40 +00:00
mod.rs support revealing defined opaque post borrowck 2024-11-28 10:40:58 +01:00
project_goals.rs Rename tcx to cx 2024-06-25 17:36:52 -04:00
search_graph.rs move defining_opaque_types out of Canonical 2024-10-17 10:22:52 +02:00
trait_goals.rs do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00