From a39fffea220b5bd72b1ae3d34c25e97d77fac1dc Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Sat, 1 Jun 2019 19:05:08 -0500 Subject: [PATCH] Add self parameter --- src/librustc_mir/borrow_check/used_muts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/borrow_check/used_muts.rs b/src/librustc_mir/borrow_check/used_muts.rs index db5c3c7a340..828429a1808 100644 --- a/src/librustc_mir/borrow_check/used_muts.rs +++ b/src/librustc_mir/borrow_check/used_muts.rs @@ -53,7 +53,7 @@ struct GatherUsedMutsVisitor<'visit, 'cx: 'visit, 'gcx: 'tcx, 'tcx: 'cx> { } impl GatherUsedMutsVisitor<'_, '_, '_, '_> { - fn remove_never_initialized_mut_locals(into: &Place) { + fn remove_never_initialized_mut_locals(&mut self, into: &Place) { // Remove any locals that we found were initialized from the // `never_initialized_mut_locals` set. At the end, the only remaining locals will // be those that were never initialized - we will consider those as being used as -- 2.44.0