Skip to content

Commit 567d55e

Browse files
committed
fix save-analysis
1 parent 604bc87 commit 567d55e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

compiler/rustc_save_analysis/src/dump_visitor.rs

+11-1
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,15 @@ impl<'tcx> DumpVisitor<'tcx> {
320320
for param in generics.params {
321321
match param.kind {
322322
hir::GenericParamKind::Lifetime { .. } => {}
323+
hir::GenericParamKind::Type {
324+
synthetic: Some(hir::SyntheticTyParamKind::ImplTrait),
325+
..
326+
} => {
327+
return self
328+
.nest_typeck_results(self.tcx.hir().local_def_id(param.hir_id), |this| {
329+
this.visit_generics(generics)
330+
});
331+
}
323332
hir::GenericParamKind::Type { .. } => {
324333
let param_ss = param.name.ident().span;
325334
let name = escape(self.span.snippet(param_ss));
@@ -351,7 +360,8 @@ impl<'tcx> DumpVisitor<'tcx> {
351360
hir::GenericParamKind::Const { .. } => {}
352361
}
353362
}
354-
self.visit_generics(generics);
363+
364+
self.visit_generics(generics)
355365
}
356366

357367
fn process_fn(

0 commit comments

Comments
 (0)