Rollup merge of #139063 - fmease:fix-tait-atpit-gating, r=oli-obk
Fix TAIT & ATPIT feature gating in the presence of anon consts Fixes #139055 (https://github.com/rust-lang/rust/issues/119924#issuecomment-1928659690). r? oli-obk or anybody else
This commit is contained in:
commit
52aed95060
8 changed files with 200 additions and 13 deletions
|
@ -99,6 +99,13 @@ impl<'a> PostExpansionVisitor<'a> {
|
|||
}
|
||||
visit::walk_ty(self, ty);
|
||||
}
|
||||
|
||||
fn visit_anon_const(&mut self, _: &ast::AnonConst) -> Self::Result {
|
||||
// We don't walk the anon const because it crosses a conceptual boundary: We're no
|
||||
// longer "inside" the original type.
|
||||
// Brittle: We assume that the callers of `check_impl_trait` will later recurse into
|
||||
// the items found in the AnonConst to look for nested TyAliases.
|
||||
}
|
||||
}
|
||||
ImplTraitVisitor { vis: self, in_associated_ty }.visit_ty(ty);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue