Create some minimal HIR for associated opaque types
This commit is contained in:
parent
9ce37dc729
commit
b6312eb943
16 changed files with 67 additions and 29 deletions
|
@ -2554,6 +2554,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!(),
|
||||
}
|
||||
|
||||
let ast_generics = self.tcx.hir().get_generics(lifetime_scope).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue