1
Fork 0

GenericParam does not need to be a HIR owner.

This commit is contained in:
Camille GILLOT 2021-03-23 22:47:22 +01:00
parent d04c3aa865
commit 4c0b7ac7ba
4 changed files with 6 additions and 54 deletions

View file

@ -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));