Add self parameter
This commit is contained in:
parent
c25b3df3e5
commit
a39fffea22
@ -53,7 +53,7 @@ struct GatherUsedMutsVisitor<'visit, 'cx: 'visit, 'gcx: 'tcx, 'tcx: 'cx> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl GatherUsedMutsVisitor<'_, '_, '_, '_> {
|
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
|
// Remove any locals that we found were initialized from the
|
||||||
// `never_initialized_mut_locals` set. At the end, the only remaining locals will
|
// `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
|
// be those that were never initialized - we will consider those as being used as
|
||||||
|
Loading…
x
Reference in New Issue
Block a user