Auto merge of #83424 - cjgillot:noparam, r=lcnr
GenericParam does not need to be a HIR owner. The special case is not required. Universal impl traits design to regular generic parameters, and their content is owned by the enclosing item. Existential (and opaque) impl traits generate their own enclosing item, and are collected through it.
This commit is contained in:
commit
cb473c2c5b
4 changed files with 6 additions and 54 deletions
|
@ -320,15 +320,6 @@ impl<'tcx> DumpVisitor<'tcx> {
|
|||
for param in generics.params {
|
||||
match param.kind {
|
||||
hir::GenericParamKind::Lifetime { .. } => {}
|
||||
hir::GenericParamKind::Type {
|
||||
synthetic: Some(hir::SyntheticTyParamKind::ImplTrait),
|
||||
..
|
||||
} => {
|
||||
return self
|
||||
.nest_typeck_results(self.tcx.hir().local_def_id(param.hir_id), |this| {
|
||||
this.visit_generics(generics)
|
||||
});
|
||||
}
|
||||
hir::GenericParamKind::Type { .. } => {
|
||||
let param_ss = param.name.ident().span;
|
||||
let name = escape(self.span.snippet(param_ss));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue