]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/transform/simplify.rs
make `super_projection` take a `PlaceRef`
[rust.git] / compiler / rustc_mir / src / transform / simplify.rs
index 289231e52cb41baf65c40823b75eb58f6e2f9d59..d9abfec85c9e7643e4d68ad0118d05781dfc5b18 100644 (file)
@@ -414,8 +414,7 @@ fn visit_lhs(&mut self, place: &Place<'tcx>, location: Location) {
         } else {
             // A definition. Although, it still might use other locals for indexing.
             self.super_projection(
-                place.local,
-                &place.projection,
+                place.as_ref(),
                 PlaceContext::MutatingUse(MutatingUseContext::Projection),
                 location,
             );