Improve instrumentation for the bug reported during fn report_borrowed_value_does_not_live_long_enough
.
This commit is contained in:
parent
f67c683950
commit
1c3fd02a4c
1 changed files with 2 additions and 1 deletions
|
@ -471,7 +471,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
|
|||
| (RegionKind::ReClosureBound(_), _)
|
||||
| (RegionKind::ReCanonical(_), _)
|
||||
| (RegionKind::ReErased, _) => {
|
||||
span_bug!(drop_span, "region does not make sense in this context");
|
||||
span_bug!(drop_span, "region {:?} does not make sense in this context",
|
||||
borrow.region);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue