about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/regions.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-02-02 18:31:35 +0000
committerMichael Goulet <michael@errs.io>2024-02-02 18:31:35 +0000
commite951bcff96ac606aad3b7870c7fa64a4a48aa04b (patch)
treee16a077ac20f80211efed34d7afdc8082f971fb3 /compiler/rustc_trait_selection/src/regions.rs
parenta371059933c11c79f9583ec149d56774e87b940f (diff)
downloadrust-e951bcff96ac606aad3b7870c7fa64a4a48aa04b.tar.gz
rust-e951bcff96ac606aad3b7870c7fa64a4a48aa04b.zip
Normalize the whole PolyTypeOutlivesPredicate, more simplifications
Diffstat (limited to 'compiler/rustc_trait_selection/src/regions.rs')
-rw-r--r--compiler/rustc_trait_selection/src/regions.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/regions.rs b/compiler/rustc_trait_selection/src/regions.rs
index e5a7b27446b..756db7cc206 100644
--- a/compiler/rustc_trait_selection/src/regions.rs
+++ b/compiler/rustc_trait_selection/src/regions.rs
@@ -1,5 +1,6 @@
 use rustc_infer::infer::outlives::env::OutlivesEnvironment;
 use rustc_infer::infer::{InferCtxt, RegionResolutionError};
+use rustc_middle::traits::query::NoSolution;
 use rustc_middle::traits::ObligationCause;
 
 pub trait InferCtxtRegionExt<'tcx> {
@@ -24,15 +25,14 @@ impl<'tcx> InferCtxtRegionExt<'tcx> for InferCtxt<'tcx> {
             let ty = self.resolve_vars_if_possible(ty);
 
             if self.next_trait_solver() {
-                crate::solve::deeply_normalize_with_skipped_universes(
+                crate::solve::deeply_normalize(
                     self.at(
                         &ObligationCause::dummy_with_span(origin.span()),
                         outlives_env.param_env,
                     ),
                     ty,
-                    vec![None; ty.outer_exclusive_binder().as_usize()],
                 )
-                .map_err(|_| ty)
+                .map_err(|_| NoSolution)
             } else {
                 Ok(ty)
             }