rust/compiler/rustc_trait_selection/src/traits
Matthias Krüger bdf7b74517
Rollup merge of #142040 - jswrenn:transmute-ty-region-generic, r=compiler-errors
transmutability: shift abstraction boundary

Previously, `rustc_transmute`'s layout representations were genericized over `R`, a reference. Now, it's instead genericized over representations of type and region. This allows us to move reference transmutability logic from `rustc_trait_selection` to `rustc_transmutability` (and thus unit test it independently of the compiler), and — in a follow-up PR — will make it possible to support analyzing function pointer transmutability with minimal surgery.

r? `@compiler-errors`
2025-06-12 03:14:49 +02:00
..
query Rename 2025-05-26 08:48:19 +00:00
select transmutability: shift abstraction boundary 2025-06-09 14:08:12 +00:00
specialize Use less rustc_type_ir in the compiler codebase 2025-04-30 16:42:33 +02:00
auto_trait.rs Rename 2025-05-26 08:48:19 +00:00
coherence.rs clean code: remove Deref<Target=RegionKind> impl for Region and use .kind() 2025-04-08 10:51:41 +08:00
const_evaluatable.rs compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
dyn_compatibility.rs Use less rustc_type_ir in the compiler codebase 2025-04-30 16:42:33 +02:00
effects.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
engine.rs eagerly check nested obligations when coercing fndefs 2025-05-21 11:09:48 +00:00
fulfill.rs Rename 2025-05-26 08:48:19 +00:00
misc.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
mod.rs Don't retry in pred_known_to_hold_modulo_regions in new solver, since new solver is more complete 2025-05-26 08:37:28 +00:00
normalize.rs FIXME(-Znext-solver) triage 2025-06-03 14:23:56 +02:00
outlives_bounds.rs Rename 2025-05-26 08:48:19 +00:00
project.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
structural_normalize.rs Unify normalization of terms in deeply normalize 2025-06-07 02:35:28 +00:00
util.rs re-use sized fast path 2025-04-09 10:42:26 +00:00
vtable.rs Move has_self field to hir::AssocKind::Fn. 2025-04-14 16:13:04 +10:00
wf.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00