]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/transform/type_check.rs
Auto merge of #45668 - nikomatsakis:nll-free-region, r=arielb1
[rust.git] / src / librustc_mir / transform / type_check.rs
index d8dc7a8d5cc7d3e57f377828295f4bfd900a61a7..b07e818ee87525045e6d237d575d74cb66117cef 100644 (file)
@@ -92,8 +92,8 @@ fn visit_rvalue(&mut self, rvalue: &Rvalue<'tcx>, location: Location) {
         self.sanitize_type(rvalue, rval_ty);
     }
 
-    fn visit_local_decl(&mut self, local_decl: &LocalDecl<'tcx>) {
-        self.super_local_decl(local_decl);
+    fn visit_local_decl(&mut self, local: Local, local_decl: &LocalDecl<'tcx>) {
+        self.super_local_decl(local, local_decl);
         self.sanitize_type(local_decl, local_decl.ty);
     }