GenericParam does not need to be a HIR owner.
This commit is contained in:
parent
d04c3aa865
commit
4c0b7ac7ba
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