Don't use reempty as an implicit_outlives_region

This commit is contained in:
Jack Huey 2022-06-19 10:47:40 -04:00
parent 1120c5e01d
commit cc87d53da9

View File

@ -386,7 +386,7 @@ pub fn report_region_errors(
RegionResolutionError::UpperBoundUniverseConflict(
_,
_,
var_universe,
_,
sup_origin,
sup_r,
) => {
@ -397,7 +397,7 @@ pub fn report_region_errors(
// placeholder. In practice, we expect more
// tailored errors that don't really use this
// value.
let sub_r = self.tcx.mk_region(ty::ReEmpty(var_universe));
let sub_r = self.tcx.lifetimes.re_erased;
self.report_placeholder_failure(sup_origin, sub_r, sup_r).emit();
}