rust/compiler
bors 78b89ebb6b Auto merge of #145469 - cjgillot:split-transmute, r=nnethercote
Split transmute check from HIR typeck

This resolves a FIXME in the implementation of `check_transmute`.

`check_transmute` needs to compute type layout, hence needing to see reveal opaques and all type aliases.
Having this inside typeck causes a cycle. For instance: `tests/ui/impl-trait/transmute/in-defining-scope.rs`.

This PR moves the transmute check outside of typeck, by putting the list of deferred transmute checks in typeck results.
2025-08-23 01:58:57 +00:00
..
2025-08-22 20:10:27 +00:00