Sidestep an ICE by providing *some* description for ReEmpty when it arises.

This commit is contained in:
Felix S. Klock II 2018-11-03 02:24:50 +01:00
parent 05812fa8c5
commit 5aeb6c756e

View File

@ -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),
}
}