]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/query/dropck_outlives.rs
Auto merge of #104875 - chenyukang:yukang/fix-104867-inc, r=estebank
[rust.git] / compiler / rustc_trait_selection / src / traits / query / dropck_outlives.rs
index 03558f04ed295beb824e8879a9decf3e9a05aa19..0f21813bc40ae1a85dfd1185f7199ecd2eec708a 100644 (file)
@@ -62,9 +62,8 @@ pub fn trivial_dropck_outlives<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> bool {
 
         // The following *might* require a destructor: needs deeper inspection.
         ty::Dynamic(..)
-        | ty::Alias(ty::Projection, ..)
+        | ty::Alias(..)
         | ty::Param(_)
-        | ty::Alias(ty::Opaque, ..)
         | ty::Placeholder(..)
         | ty::Infer(_)
         | ty::Bound(..)