]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_traits/src/dropck_outlives.rs
Auto merge of #105714 - jyn514:tidy-first, r=Mark-Simulacrum
[rust.git] / compiler / rustc_traits / src / dropck_outlives.rs
index 66ab742f15782ae6689314daebb663653635eb41..3f661ce69235caaf0cb69c8df90277e9fdbfb0be 100644 (file)
@@ -112,7 +112,7 @@ fn dropck_outlives<'tcx>(
 
                     // A projection that we couldn't resolve - it
                     // might have a destructor.
-                    ty::Projection(..) | ty::Opaque(..) => {
+                    ty::Alias(..) => {
                         result.kinds.push(ty.into());
                     }
 
@@ -268,7 +268,7 @@ fn dtorck_constraint_for_ty<'tcx>(
         }
 
         // Types that can't be resolved. Pass them forward.
-        ty::Projection(..) | ty::Opaque(..) | ty::Param(..) => {
+        ty::Alias(..) | ty::Param(..) => {
             constraints.dtorck_types.push(ty);
         }