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

@ -2553,7 +2553,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
hir::OwnerNode::ImplItem(i) => visitor.visit_impl_item(i),
hir::OwnerNode::TraitItem(i) => visitor.visit_trait_item(i),
hir::OwnerNode::Crate(_) => bug!("OwnerNode::Crate doesn't not have generics"),
hir::OwnerNode::AssocOpaqueTy(..) => unreachable!(),
hir::OwnerNode::Synthetic => unreachable!(),
}
let ast_generics = self.tcx.hir().get_generics(lifetime_scope).unwrap();