Intern OpaqueTy on ItemKind::OpaqueTy

This commit is contained in:
Santiago Pastorino
2023-06-22 20:53:20 -03:00
parent 72a32583d1
commit d70deac161
9 changed files with 9 additions and 9 deletions

View File

@@ -299,7 +299,7 @@ pub(super) fn check_opaque_for_inheriting_lifetimes(
}
}
if let ItemKind::OpaqueTy(hir::OpaqueTy {
if let ItemKind::OpaqueTy(&hir::OpaqueTy {
origin: hir::OpaqueTyOrigin::AsyncFn(..) | hir::OpaqueTyOrigin::FnReturn(..),
in_trait,
..