remove optionality from MoveData::base_local
This commit is contained in:
parent
d1a0fa5ed3
commit
17073464ad
2 changed files with 6 additions and 13 deletions
|
@ -108,9 +108,7 @@ impl LocalsStateAtExit {
|
|||
has_storage_dead.visit_body(body);
|
||||
let mut has_storage_dead_or_moved = has_storage_dead.0;
|
||||
for move_out in &move_data.moves {
|
||||
if let Some(index) = move_data.base_local(move_out.path) {
|
||||
has_storage_dead_or_moved.insert(index);
|
||||
}
|
||||
has_storage_dead_or_moved.insert(move_data.base_local(move_out.path));
|
||||
}
|
||||
LocalsStateAtExit::SomeAreInvalidated { has_storage_dead_or_moved }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue