diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-10-22 21:04:28 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-10-22 21:11:50 +0200 |
| commit | 567d55ef9ef4c441365227aeb14880eef639c349 (patch) | |
| tree | 6e06ca169533fe331324de4a07048f66f817d038 | |
| parent | 604bc876e03a4169a1fb42408d778c65ab39cec2 (diff) | |
| download | rust-567d55ef9ef4c441365227aeb14880eef639c349.tar.gz rust-567d55ef9ef4c441365227aeb14880eef639c349.zip | |
fix save-analysis
| -rw-r--r-- | compiler/rustc_save_analysis/src/dump_visitor.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/dump_visitor.rs b/compiler/rustc_save_analysis/src/dump_visitor.rs index ce484858cbb..dbb5e3cc9f0 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -320,6 +320,15 @@ 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)); @@ -351,7 +360,8 @@ impl<'tcx> DumpVisitor<'tcx> { hir::GenericParamKind::Const { .. } => {} } } - self.visit_generics(generics); + + self.visit_generics(generics) } fn process_fn( |
