1
Fork 0

The AssocOpaqueTy HIR node is not actually needed to differentiate from other hir nodes that were fed

This commit is contained in:
Oli Scherer 2024-03-19 08:37:53 +00:00
parent 196ff446d2
commit bdb682eda6
10 changed files with 21 additions and 27 deletions

View file

@ -196,7 +196,7 @@ fn check_well_formed(tcx: TyCtxt<'_>, def_id: hir::OwnerId) -> Result<(), ErrorG
hir::OwnerNode::TraitItem(item) => check_trait_item(tcx, item),
hir::OwnerNode::ImplItem(item) => check_impl_item(tcx, item),
hir::OwnerNode::ForeignItem(item) => check_foreign_item(tcx, item),
hir::OwnerNode::AssocOpaqueTy(..) => unreachable!(),
hir::OwnerNode::Synthetic => unreachable!(),
};
if let Some(generics) = node.generics() {