rust/compiler/rustc_const_eval/src
bors 9bb6fbe261 Auto merge of #113376 - Nilstrieb:pointer-coercions-are-not-casts-because-that-sounds-way-to-general-aaaa, r=oli-obk
Rename `adjustment::PointerCast` and variants using it to `PointerCoercion`

It makes it sounds like the `ExprKind` and `Rvalue` are supposed to represent all pointer related casts, when in reality their just used to share a little enum variants. Make it clear there these are only coercions and that people who see this and think "why are so many pointer related casts not in these variants" aren't insane.

This enum was added in #59987. I'm not sure whether the variant sharing is actually worth it, but this at least makes it less confusing.

r? oli-obk
2023-07-08 13:48:30 +00:00
..
const_eval Name the destructure_mir_constant query appropriately 2023-07-05 15:54:43 +00:00
interpret Auto merge of #113376 - Nilstrieb:pointer-coercions-are-not-casts-because-that-sounds-way-to-general-aaaa, r=oli-obk 2023-07-08 13:48:30 +00:00
transform Rename adjustment::PointerCast and variants using it to PointerCoercion 2023-07-07 18:17:16 +02:00
util Put LayoutError behind reference to shrink result 2023-07-01 21:16:25 +02:00
errors.rs Better error for non const PartialEq call generated by match 2023-06-18 05:24:38 +00:00
lib.rs Name the destructure_mir_constant query appropriately 2023-07-05 15:54:43 +00:00