We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 948f77c commit 3a9134dCopy full SHA for 3a9134d
src/librustc_mir/dataflow/impls/borrows.rs
@@ -88,7 +88,7 @@ fn precompute_borrows_out_of_scope<'a, 'tcx>(
88
let bb_data = &mir[location.block];
89
// If this is the last statement in the block, then add the
90
// terminator successors next.
91
- if location.statement_index == bb_data.statements.len() - 1 {
+ if location.statement_index == bb_data.statements.len() {
92
// Add successors to locations to visit, if not visited before.
93
if let Some(ref terminator) = bb_data.terminator {
94
for block in terminator.successors() {
0 commit comments