Skip to content

Commit 97bc38e

Browse files
committed
break eagerly from loop
1 parent 74a2cd0 commit 97bc38e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/borrow_check/error_reporting.rs

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
214214
note_msg, ty,
215215
));
216216
note = false;
217+
break;
217218
}
218219
}
219220
if note {

0 commit comments

Comments
 (0)