about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/dataflow
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-23 02:51:50 +0100
committerGitHub <noreply@github.com>2021-02-23 02:51:50 +0100
commitcc07061190713059dc533f68a450799dbfb70c5e (patch)
tree3ca9bb1a40af3badf72591121aae373e6a4e2287 /compiler/rustc_mir/src/dataflow
parent7b9ef2fde4233a30b15bc7b92004a4cc0bb22dc5 (diff)
parenta9c61888896da6feea45875813b894e7fa4067f6 (diff)
downloadrust-cc07061190713059dc533f68a450799dbfb70c5e.tar.gz
rust-cc07061190713059dc533f68a450799dbfb70c5e.zip
Rollup merge of #82091 - henryboisdequin:use-place-ref-more, r=RalfJung
use PlaceRef abstractions more consistently

Addresses this [comment](https://github.com/rust-lang/rust/pull/80865/files#r558978715)
Associated issue: #80647

r? ```@RalfJung```
Diffstat (limited to 'compiler/rustc_mir/src/dataflow')
-rw-r--r--compiler/rustc_mir/src/dataflow/impls/liveness.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/dataflow/impls/liveness.rs b/compiler/rustc_mir/src/dataflow/impls/liveness.rs
index 85aaff5ab72..2d20f0d9547 100644
--- a/compiler/rustc_mir/src/dataflow/impls/liveness.rs
+++ b/compiler/rustc_mir/src/dataflow/impls/liveness.rs
@@ -95,7 +95,7 @@ where
 
         // We purposefully do not call `super_place` here to avoid calling `visit_local` for this
         // place with one of the `Projection` variants of `PlaceContext`.
-        self.visit_projection(local, projection, context, location);
+        self.visit_projection(place.as_ref(), context, location);
 
         match DefUse::for_place(context) {
             // Treat derefs as a use of the base local. `*p = 4` is not a def of `p` but a use.