1
Fork 0

Make TAITs capture all higher-ranked lifetimes in scope

This commit is contained in:
Michael Goulet 2024-03-06 17:52:53 +00:00
parent 9823f17315
commit cf299ddb6e
17 changed files with 122 additions and 152 deletions

View file

@ -141,7 +141,7 @@ impl<'tcx> OpaqueTypeCollector<'tcx> {
trace!(?origin);
match origin {
rustc_hir::OpaqueTyOrigin::FnReturn(_) | rustc_hir::OpaqueTyOrigin::AsyncFn(_) => {}
rustc_hir::OpaqueTyOrigin::TyAlias { in_assoc_ty } => {
rustc_hir::OpaqueTyOrigin::TyAlias { in_assoc_ty, .. } => {
if !in_assoc_ty {
if !self.check_tait_defining_scope(alias_ty.def_id.expect_local()) {
return;