about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-13 02:43:25 +0000
committerbors <bors@rust-lang.org>2022-07-13 02:43:25 +0000
commit7b5715289f813460ac95189fb7d3479e8edd23eb (patch)
tree8b1150568dd638cb9b2a47c58294f4035db80c53 /compiler/rustc_interface/src/interface.rs
parent1c7b36d4db582cb47513a6c7176baaec1c3346ab (diff)
parent04b3cd9f7c8366490590d839ab814d03406eed4a (diff)
downloadrust-7b5715289f813460ac95189fb7d3479e8edd23eb.tar.gz
rust-7b5715289f813460ac95189fb7d3479e8edd23eb.zip
Auto merge of #99101 - RalfJung:interpret-projections, r=oli-obk
interpret: refactor projection handling code

Moves our projection handling code into a common file, and avoids the use of a
general mplace-based fallback function by have more specialized implementations.

mplace_index (and the other slice-related functions) could be more efficient by
copy-pasting the body of operand_index. Or we could do some trait magic to share
the code between them. But for now this is probably fine.

This is the common part of https://github.com/rust-lang/rust/pull/99013 and https://github.com/rust-lang/rust/pull/99097. I am seeing some strange perf results so this probably should be its own change so we know which diff caused which perf changes...

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
0 files changed, 0 insertions, 0 deletions