about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-04 20:56:34 +0000
committerbors <bors@rust-lang.org>2021-01-04 20:56:34 +0000
commit61f5a0092364061ec5649ca98d5e3e9b927880fe (patch)
tree9890d709e4134cdd471adf4eae3654258fdd8f32 /compiler/rustc_codegen_llvm/src
parent9a22f993f0d029bc38fb35cd0002c74436553e46 (diff)
parentafa74080410c1eba4cd23ddd8e2ac3d6ad1441e3 (diff)
downloadrust-61f5a0092364061ec5649ca98d5e3e9b927880fe.tar.gz
rust-61f5a0092364061ec5649ca98d5e3e9b927880fe.zip
Auto merge of #80624 - RalfJung:place-ref, r=oli-obk
use PlaceRef more consistently instead of loosely coupled local+projection

Instead of working directly with the `projections` array, use `iter_projections` and `last_projection`. This avoids having to construct new `PlaceRef` from the pieces everywhere.

I only did this for a few files, to see how people think about this. If y'all are happy with this, I'll open an E-mentor issue to complete this. I grepped for `Place::ty_from` to find the places that need adjusting -- this could miss some, but I am not sure what else to grep for.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions