]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_resolve/src/late/lifetimes.rs
Rollup merge of #101700 - compiler-errors:deletion-span, r=davidtwco
[rust.git] / compiler / rustc_resolve / src / late / lifetimes.rs
index 101679aa6dc93fade0f481b74e1cd03dff34f7dd..6ff56f9a89114cd4367d7a18d0e8b71b3e98d912 100644 (file)
@@ -715,7 +715,7 @@ fn visit_ty(&mut self, ty: &'tcx hir::Ty<'tcx>) {
                 };
                 self.with(scope, |this| this.visit_ty(&mt.ty));
             }
-            hir::TyKind::OpaqueDef(item_id, lifetimes) => {
+            hir::TyKind::OpaqueDef(item_id, lifetimes, _in_trait) => {
                 // Resolve the lifetimes in the bounds to the lifetime defs in the generics.
                 // `fn foo<'a>() -> impl MyTrait<'a> { ... }` desugars to
                 // `type MyAnonTy<'b> = impl MyTrait<'b>;`