Remove ResultsCursor::contains
.
It's hardly worth it, and it needs to be removed so that `GenKillAnalysis` can be removed.
This commit is contained in:
parent
5ceb623a4a
commit
874b03ec28
5 changed files with 5 additions and 16 deletions
|
@ -133,7 +133,7 @@ impl InitializationData<'_, '_> {
|
|||
}
|
||||
|
||||
fn maybe_live_dead(&self, path: MovePathIndex) -> (bool, bool) {
|
||||
(self.inits.contains(path), self.uninits.contains(path))
|
||||
(self.inits.get().contains(path), self.uninits.get().contains(path))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ fn compute_replacement<'tcx>(
|
|||
} else {
|
||||
// This is a proper dereference. We can only allow it if `target` is live.
|
||||
maybe_dead.seek_after_primary_effect(loc);
|
||||
let maybe_dead = maybe_dead.contains(target.local);
|
||||
let maybe_dead = maybe_dead.get().contains(target.local);
|
||||
!maybe_dead
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue