File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
compiler/rustc_save_analysis/src Expand file tree Collapse file tree 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> {
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 (
You can’t perform that action at this time.
0 commit comments