]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/fast_reject.rs
Auto merge of #102596 - scottmcm:option-bool-calloc, r=Mark-Simulacrum
[rust.git] / compiler / rustc_middle / src / ty / fast_reject.rs
index 41bb3c7140172fbd0ed58c0f1a5da5b33bc541e8..3be0bc4defc5cacc1e039a5838c1f007c3e2560d 100644 (file)
@@ -132,7 +132,7 @@ pub fn simplify_type<'tcx>(
             // don't unify with anything else as long as they are fully normalized.
             //
             // We will have to be careful with lazy normalization here.
-            TreatParams::AsPlaceholder if !ty.has_infer_types_or_consts() => {
+            TreatParams::AsPlaceholder if !ty.has_non_region_infer() => {
                 debug!("treating `{}` as a placeholder", ty);
                 Some(PlaceholderSimplifiedType)
             }