Skip to content

Commit cbc865d

Browse files
committed
Use successor_within_block helper
1 parent f66e469 commit cbc865d

File tree

1 file changed

+1
-4
lines changed
  • src/librustc_mir/borrow_check/nll/explain_borrow

1 file changed

+1
-4
lines changed

src/librustc_mir/borrow_check/nll/explain_borrow/find_use.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ impl<'cx, 'gcx, 'tcx> UseFinder<'cx, 'gcx, 'tcx> {
6565

6666
None => {
6767
if p.statement_index < block_data.statements.len() {
68-
queue.push_back(Location {
69-
statement_index: p.statement_index + 1,
70-
..p
71-
});
68+
queue.push_back(p.successor_within_block());
7269
} else {
7370
queue.extend(
7471
block_data

0 commit comments

Comments
 (0)