diff options
| author | bors <bors@rust-lang.org> | 2021-03-25 16:35:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-25 16:35:19 +0000 |
| commit | cb473c2c5b72289470fa4de00474b7239013f11f (patch) | |
| tree | a7691ae8a7716ceeda9072e87ceb02b7634721c9 /compiler/rustc_save_analysis/src | |
| parent | 6e17a5c5fd086ebe6f57216fb3ce5d1d8d6c83e5 (diff) | |
| parent | 4c0b7ac7ba97092faf4a1322981ad6e5b1f01111 (diff) | |
| download | rust-cb473c2c5b72289470fa4de00474b7239013f11f.tar.gz rust-cb473c2c5b72289470fa4de00474b7239013f11f.zip | |
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.
Diffstat (limited to 'compiler/rustc_save_analysis/src')
| -rw-r--r-- | compiler/rustc_save_analysis/src/dump_visitor.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_save_analysis/src/dump_visitor.rs b/compiler/rustc_save_analysis/src/dump_visitor.rs index 15435df32be..65f16ff45a1 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -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)); |
