Skip to content

Commit

Permalink
Micro-optimization on PR#50697
Browse files Browse the repository at this point in the history
  • Loading branch information
KiChjang committed May 22, 2018
1 parent 21ea121 commit 1fcb475
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_mir/borrow_check/mod.rs
Expand Up @@ -1853,6 +1853,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
for index in ii {
if flow_state.ever_inits.contains(index) {
self.used_mut.insert(*local);
break;
}
}
}
Expand Down

0 comments on commit 1fcb475

Please sign in to comment.