]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_traits/src/implied_outlives_bounds.rs
Auto merge of #101030 - woppopo:const_location, r=scottmcm
[rust.git] / compiler / rustc_traits / src / implied_outlives_bounds.rs
index 32aca4a8a3f9108ad16eb62787468a35a81790dd..7d36b9558d50b2a974b5432c4aa1f42e00c99d72 100644 (file)
@@ -35,7 +35,7 @@ fn implied_outlives_bounds<'tcx>(
 }
 
 fn compute_implied_outlives_bounds<'tcx>(
-    infcx: &InferCtxt<'_, 'tcx>,
+    infcx: &InferCtxt<'tcx>,
     param_env: ty::ParamEnv<'tcx>,
     ty: Ty<'tcx>,
 ) -> Fallible<Vec<OutlivesBound<'tcx>>> {
@@ -79,7 +79,7 @@ fn compute_implied_outlives_bounds<'tcx>(
         // implied bounds in some cases, mostly when dealing with projections.
         fulfill_cx.register_predicate_obligations(
             infcx,
-            obligations.iter().filter(|o| o.predicate.has_infer_types_or_consts()).cloned(),
+            obligations.iter().filter(|o| o.predicate.has_non_region_infer()).cloned(),
         );
 
         // From the full set of obligations, just filter down to the