]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_const_eval/src/interpret/validity.rs
Rollup merge of #103104 - SUPERCILEX:sep-ref, r=dtolnay
[rust.git] / compiler / rustc_const_eval / src / interpret / validity.rs
index fc65306e440a9912ead726d9d4ca871cd5eae3be..f905d3fb479a0b7e343c7dd187239f94f3543705 100644 (file)
@@ -601,8 +601,7 @@ fn try_visit_primitive(
             | ty::Placeholder(..)
             | ty::Bound(..)
             | ty::Param(..)
-            | ty::Opaque(..)
-            | ty::Projection(..)
+            | ty::Alias(..)
             | ty::GeneratorWitness(..) => bug!("Encountered invalid type {:?}", ty),
         }
     }