about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-07 17:27:34 +0100
committerGitHub <noreply@github.com>2020-03-07 17:27:34 +0100
commitf1f4864de3ecfa106d03f2172f2c80edf8eeb02c (patch)
tree49faa3c7b1b796e528b03fb1af1258ae9d59cd81 /src/librustc_codegen_ssa
parent10f999b72d24fa181a3ec54fd21807b6a664e615 (diff)
parent0ed6e795fb3e8e70765576b929e3eb030c4f10d3 (diff)
downloadrust-f1f4864de3ecfa106d03f2172f2c80edf8eeb02c.tar.gz
rust-f1f4864de3ecfa106d03f2172f2c80edf8eeb02c.zip
Rollup merge of #69787 - spastorino:use-local-directly-its-copy, r=oli-obk
mir::Local is Copy we can pass it by value in these cases

r? @oli-obk
Diffstat (limited to 'src/librustc_codegen_ssa')
-rw-r--r--src/librustc_codegen_ssa/mir/analyze.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/mir/analyze.rs b/src/librustc_codegen_ssa/mir/analyze.rs
index 7bf222f4701..b8a7d7df487 100644
--- a/src/librustc_codegen_ssa/mir/analyze.rs
+++ b/src/librustc_codegen_ssa/mir/analyze.rs
@@ -203,7 +203,7 @@ impl<Bx: BuilderMethods<'a, 'tcx>> LocalAnalyzer<'mir, 'a, 'tcx, Bx> {
             }
 
             self.visit_place_base(&place_ref.local, context, location);
-            self.visit_projection(&place_ref.local, place_ref.projection, context, location);
+            self.visit_projection(place_ref.local, place_ref.projection, context, location);
         }
     }
 }