]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_mir_dataflow/src/impls/init_locals.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / compiler / rustc_mir_dataflow / src / impls / init_locals.rs
index 584ab9718ed65121cc5aafd62ef3e0aff2e7f79b..83ce4c44b7144e5cfa97c5d5c67feb5f55364396 100644 (file)
@@ -81,7 +81,7 @@ where
     // deinitialized, although clearly it is only partially deinitialized. This analysis is not
     // actually used anywhere at the moment, so this is not critical, but this does need to be fixed
     // before it starts being used again.
-    fn visit_local(&mut self, &local: &Local, context: PlaceContext, _: Location) {
+    fn visit_local(&mut self, local: Local, context: PlaceContext, _: Location) {
         use rustc_middle::mir::visit::{MutatingUseContext, NonMutatingUseContext, NonUseContext};
         match context {
             // These are handled specially in `call_return_effect` and `yield_resume_effect`.