mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
fix save-analysis
This commit is contained in:
parent
604bc876e0
commit
567d55ef9e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user