Skip to content

Commit 1fcb475

Browse files
committed
Micro-optimization on PR#50697
1 parent 21ea121 commit 1fcb475

File tree

1 file changed

+1
-0
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+1
-0
lines changed

src/librustc_mir/borrow_check/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
18531853
for index in ii {
18541854
if flow_state.ever_inits.contains(index) {
18551855
self.used_mut.insert(*local);
1856+
break;
18561857
}
18571858
}
18581859
}

0 commit comments

Comments
 (0)