Skip to content

Commit

Permalink
Improve instrumentation for the bug reported during `fn report_borrow…
Browse files Browse the repository at this point in the history
…ed_value_does_not_live_long_enough`.
  • Loading branch information
pnkfelix committed May 3, 2018
1 parent f67c683 commit 1c3fd02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/borrow_check/error_reporting.rs
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 1c3fd02

Please sign in to comment.