Use successor_within_block helper
This commit is contained in:
parent
f66e4697ae
commit
cbc865defd
1 changed files with 1 additions and 4 deletions
|
|
@ -65,10 +65,7 @@ impl<'cx, 'gcx, 'tcx> UseFinder<'cx, 'gcx, 'tcx> {
|
|||
|
||||
None => {
|
||||
if p.statement_index < block_data.statements.len() {
|
||||
queue.push_back(Location {
|
||||
statement_index: p.statement_index + 1,
|
||||
..p
|
||||
});
|
||||
queue.push_back(p.successor_within_block());
|
||||
} else {
|
||||
queue.extend(
|
||||
block_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue