File tree 1 file changed +11
-1
lines changed
compiler/rustc_save_analysis/src
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,15 @@ impl<'tcx> DumpVisitor<'tcx> {
320
320
for param in generics. params {
321
321
match param. kind {
322
322
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
+ }
323
332
hir:: GenericParamKind :: Type { .. } => {
324
333
let param_ss = param. name . ident ( ) . span ;
325
334
let name = escape ( self . span . snippet ( param_ss) ) ;
@@ -351,7 +360,8 @@ impl<'tcx> DumpVisitor<'tcx> {
351
360
hir:: GenericParamKind :: Const { .. } => { }
352
361
}
353
362
}
354
- self . visit_generics ( generics) ;
363
+
364
+ self . visit_generics ( generics)
355
365
}
356
366
357
367
fn process_fn (
You can’t perform that action at this time.
0 commit comments