]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/subst.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / compiler / rustc_middle / src / ty / subst.rs
index 0c33e5bda1a55a2fe0d29047963b394b38d324ad..2dec58ea82a30cbecb1c214e48a7047dd6a780e6 100644 (file)
@@ -202,7 +202,7 @@ pub fn expect_const(self) -> ty::Const<'tcx> {
     pub fn is_non_region_infer(self) -> bool {
         match self.unpack() {
             GenericArgKind::Lifetime(_) => false,
-            GenericArgKind::Type(ty) => ty.is_ty_infer(),
+            GenericArgKind::Type(ty) => ty.is_ty_or_numeric_infer(),
             GenericArgKind::Const(ct) => ct.is_ct_infer(),
         }
     }