@@ -51,7 +51,7 @@ struct GatherUsedMutsVisitor<'visit, 'cx, 'tcx> {
51
51
}
52
52
53
53
impl GatherUsedMutsVisitor < ' _ , ' _ , ' _ > {
54
- fn remove_never_initialized_mut_locals ( & mut self , into : & Place < ' _ > ) {
54
+ fn remove_never_initialized_mut_locals ( & mut self , into : Place < ' _ > ) {
55
55
// Remove any locals that we found were initialized from the
56
56
// `never_initialized_mut_locals` set. At the end, the only remaining locals will
57
57
// be those that were never initialized - we will consider those as being used as
@@ -66,10 +66,10 @@ impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tc
66
66
debug ! ( "visit_terminator_kind: kind={:?}" , kind) ;
67
67
match & kind {
68
68
TerminatorKind :: Call { destination : Some ( ( into, _) ) , .. } => {
69
- self . remove_never_initialized_mut_locals ( & into) ;
69
+ self . remove_never_initialized_mut_locals ( * into) ;
70
70
}
71
71
TerminatorKind :: DropAndReplace { location, .. } => {
72
- self . remove_never_initialized_mut_locals ( & location) ;
72
+ self . remove_never_initialized_mut_locals ( * location) ;
73
73
}
74
74
_ => { }
75
75
}
@@ -82,7 +82,7 @@ impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tc
82
82
never_initialized_mut_locals={:?}",
83
83
statement, into. local, self . never_initialized_mut_locals
84
84
) ;
85
- self . remove_never_initialized_mut_locals ( into) ;
85
+ self . remove_never_initialized_mut_locals ( * into) ;
86
86
}
87
87
}
88
88
0 commit comments