about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-06-19 10:47:40 -0400
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-09-08 17:55:56 -0400
commitcc87d53da9018eb985af69caea22b2ad79b2505a (patch)
treec5adf23e9bc52d0aab627e0437cca7b4530d629f
parent1120c5e01df508de64fe6642f22fadeb574afd6d (diff)
downloadrust-cc87d53da9018eb985af69caea22b2ad79b2505a.tar.gz
rust-cc87d53da9018eb985af69caea22b2ad79b2505a.zip
Don't use reempty as an implicit_outlives_region
-rw-r--r--compiler/rustc_infer/src/infer/error_reporting/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs
index 0196bd26217..ed85c753360 100644
--- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs
+++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs
@@ -386,7 +386,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
                     RegionResolutionError::UpperBoundUniverseConflict(
                         _,
                         _,
-                        var_universe,
+                        _,
                         sup_origin,
                         sup_r,
                     ) => {
@@ -397,7 +397,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
                         // 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();
                     }