rust/compiler/rustc_const_eval/src
bors bd9785cce8 Auto merge of #114071 - RalfJung:interpret-generic-read-write, r=oli-obk
interpret: make read/write methods generic

Instead of always having to call `into()` to convert things to `PlaceTy`/`OpTy`, make the relevant methods generic. This also means that when we read from an `MPlaceTy`, we avoid creating an intermediate `PlaceTy`.

This makes it feasible to remove the `Copy` from `MPlaceTy`. All the other `*Ty` interpreter types already had their `Copy` removed a while ago so this is only consistent. (And in fact we had one function that accidentally took `MPlaceTy` instead of `&MPlaceTy`.)
2023-07-26 13:06:25 +00:00
..
const_eval valtree: a bit of cleanup 2023-07-26 11:45:35 +02:00
interpret make MPlaceTy non-Copy 2023-07-25 22:35:07 +02:00
transform Make everything builtin! 2023-07-25 16:08:58 +00:00
util Double check that hidden types match the expected hidden type 2023-07-21 13:19:36 +00:00
errors.rs interpret: refactor projection code to work on a common trait, and use that for visitors 2023-07-25 14:30:58 +02:00
lib.rs Name the destructure_mir_constant query appropriately 2023-07-05 15:54:43 +00:00