Skip to content

Commit b5b0002

Browse files
committed
improve NLL/polonius scope equality assertion
1 parent a54c8f0 commit b5b0002

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<'a, 'tcx> Borrows<'a, '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)