]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/structural_match.rs
Rollup merge of #105679 - estebank:suggest-clone, r=compiler-errors
[rust.git] / compiler / rustc_trait_selection / src / traits / structural_match.rs
index 4dc08e0f9dab0da99be2c049b08e755c9f7c5b04..892a7afd799c73c64ff0a5c6ba5bbf156b68fa9e 100644 (file)
@@ -95,10 +95,7 @@ fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<Self::BreakTy> {
             ty::Foreign(_) => {
                 return ControlFlow::Break(ty);
             }
-            ty::Opaque(..) => {
-                return ControlFlow::Break(ty);
-            }
-            ty::Projection(..) => {
+            ty::Alias(..) => {
                 return ControlFlow::Break(ty);
             }
             ty::Closure(..) => {