Sidestep an ICE by providing *some* description for ReEmpty when it arises.
This commit is contained in:
parent
05812fa8c5
commit
5aeb6c756e
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue