rust/compiler/rustc_const_eval
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
..
src Auto merge of #114071 - RalfJung:interpret-generic-read-write, r=oli-obk 2023-07-26 13:06:25 +00:00
Cargo.toml
messages.ftl interpret: refactor projection code to work on a common trait, and use that for visitors 2023-07-25 14:30:58 +02:00