Don't use reempty as an implicit_outlives_region
This commit is contained in:
parent
1120c5e01d
commit
cc87d53da9
@ -386,7 +386,7 @@ pub fn report_region_errors(
|
|||||||
RegionResolutionError::UpperBoundUniverseConflict(
|
RegionResolutionError::UpperBoundUniverseConflict(
|
||||||
_,
|
_,
|
||||||
_,
|
_,
|
||||||
var_universe,
|
_,
|
||||||
sup_origin,
|
sup_origin,
|
||||||
sup_r,
|
sup_r,
|
||||||
) => {
|
) => {
|
||||||
@ -397,7 +397,7 @@ pub fn report_region_errors(
|
|||||||
// placeholder. In practice, we expect more
|
// placeholder. In practice, we expect more
|
||||||
// tailored errors that don't really use this
|
// tailored errors that don't really use this
|
||||||
// value.
|
// 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();
|
self.report_placeholder_failure(sup_origin, sub_r, sup_r).emit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user