about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-26 13:06:25 +0000
committerbors <bors@rust-lang.org>2023-07-26 13:06:25 +0000
commitbd9785cce8dffad58a793f85454a5064100e9c84 (patch)
treeb299a05f0e6cece33e32b56aa354f0919f0aa358 /compiler/rustc_codegen_llvm/src
parent52bdc37727c03e1acf164c4fb44291c0921cb2d9 (diff)
parent571e8ce777447a542dfefd0151b17503a380176f (diff)
downloadrust-bd9785cce8dffad58a793f85454a5064100e9c84.tar.gz
rust-bd9785cce8dffad58a793f85454a5064100e9c84.zip
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`.)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions