Skip to content

Commit

Permalink
fix save-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Oct 22, 2020
1 parent 604bc87 commit 567d55e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion compiler/rustc_save_analysis/src/dump_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -351,7 +360,8 @@ impl<'tcx> DumpVisitor<'tcx> {
hir::GenericParamKind::Const { .. } => {}
}
}
self.visit_generics(generics);

self.visit_generics(generics)
}

fn process_fn(
Expand Down

0 comments on commit 567d55e

Please sign in to comment.