Sidestep an ICE by providing *some* description for ReEmpty
when it arises.
This commit is contained in:
parent
05812fa8c5
commit
5aeb6c756e
@ -178,6 +178,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
|
||||
self.msg_span_from_early_bound_and_free_regions(region)
|
||||
}
|
||||
ty::ReStatic => ("the static lifetime".to_owned(), None),
|
||||
ty::ReEmpty => ("an empty lifetime".to_owned(), None),
|
||||
_ => bug!("{:?}", region),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user