We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbcace5 commit 0eeebe1Copy full SHA for 0eeebe1
src/librustc_mir/dataflow/impls/borrows.rs
@@ -70,9 +70,9 @@ fn precompute_borrows_out_of_scope<'a, 'tcx>(
70
}
71
72
let bb_data = &mir[location.block];
73
- // If we are on the last statement, then check the terminator
+ // If we are past the last statement, then check the terminator
74
// to determine which location to proceed to.
75
- if location.statement_index == bb_data.statements.len() - 1 {
+ if location.statement_index == bb_data.statements.len() {
76
if let Some(ref terminator) = bb_data.terminator {
77
match terminator.kind {
78
TerminatorKind::Goto { target } |
0 commit comments