Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cc87d53

Browse files
committed
Don't use reempty as an implicit_outlives_region
1 parent 1120c5e commit cc87d53

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_infer/src/infer/error_reporting

1 file changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/error_reporting/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
386386
RegionResolutionError::UpperBoundUniverseConflict(
387387
_,
388388
_,
389-
var_universe,
389+
_,
390390
sup_origin,
391391
sup_r,
392392
) => {
@@ -397,7 +397,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
397397
// placeholder. In practice, we expect more
398398
// tailored errors that don't really use this
399399
// value.
400-
let sub_r = self.tcx.mk_region(ty::ReEmpty(var_universe));
400+
let sub_r = self.tcx.lifetimes.re_erased;
401401

402402
self.report_placeholder_failure(sup_origin, sub_r, sup_r).emit();
403403
}

0 commit comments

Comments
 (0)