Skip to content

Commit 3328432

Browse files
committed
improve NLL/polonius scope equality assertion
1 parent 6d627e8 commit 3328432

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: compiler/rustc_borrowck/src/dataflow.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ impl<'mir, 'tcx> Borrows<'mir, 'tcx> {
432432

433433
assert_eq!(
434434
borrows_out_of_scope_at_location, polonius_prec.loans_out_of_scope_at_location,
435-
"the loans out of scope must be the same as the borrows out of scope"
435+
"polonius loan scopes differ from NLL borrow scopes, for body {:?}",
436+
body.span,
436437
);
437438

438439
borrows_out_of_scope_at_location = polonius_prec.loans_out_of_scope_at_location;

0 commit comments

Comments
 (0)