@@ -1378,8 +1378,9 @@ impl Clean<Type> for hir::Ty<'_> {
13781378 }
13791379 TyKind :: Path ( _) => clean_qpath ( & self , cx) ,
13801380 TyKind :: TraitObject ( ref bounds, ref lifetime, _) => {
1381- match bounds[ 0 ] . clean ( cx) . trait_ {
1382- ResolvedPath { path, param_names : None , did, is_generic } => {
1381+ let cleaned = bounds[ 0 ] . clean ( cx) ;
1382+ match cleaned. trait_ {
1383+ ResolvedPath { path, param_names : None , did, is_generic, .. } => {
13831384 let mut bounds: Vec < self :: GenericBound > = bounds[ 1 ..]
13841385 . iter ( )
13851386 . map ( |bound| {
@@ -1392,7 +1393,12 @@ impl Clean<Type> for hir::Ty<'_> {
13921393 if !lifetime. is_elided ( ) {
13931394 bounds. push ( self :: GenericBound :: Outlives ( lifetime. clean ( cx) ) ) ;
13941395 }
1395- ResolvedPath { path, param_names : Some ( bounds) , did, is_generic }
1396+ ResolvedPath {
1397+ path,
1398+ param_names : Some ( ( bounds, cleaned. generic_params ) ) ,
1399+ did,
1400+ is_generic,
1401+ }
13961402 }
13971403 _ => Infer , // shouldn't happen
13981404 }
@@ -1542,7 +1548,12 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
15421548
15431549 let path =
15441550 external_path ( cx, cx. tcx . item_name ( did) , Some ( did) , false , bindings, substs) ;
1545- ResolvedPath { path, param_names : Some ( param_names) , did, is_generic : false }
1551+ ResolvedPath {
1552+ path,
1553+ param_names : Some ( ( param_names, vec ! [ ] ) ) ,
1554+ did,
1555+ is_generic : false ,
1556+ }
15461557 }
15471558 ty:: Tuple ( ref t) => {
15481559 Tuple ( t. iter ( ) . map ( |t| t. expect_ty ( ) ) . collect :: < Vec < _ > > ( ) . clean ( cx) )
@@ -2248,7 +2259,7 @@ impl From<GenericBound> for SimpleBound {
22482259 GenericBound :: TraitBound ( t, mod_) => match t. trait_ {
22492260 Type :: ResolvedPath { path, param_names, .. } => SimpleBound :: TraitBound (
22502261 path. segments ,
2251- param_names. map_or_else ( Vec :: new, |v | {
2262+ param_names. map_or_else ( Vec :: new, |( v , _ ) | {
22522263 v. iter ( ) . map ( |p| SimpleBound :: from ( p. clone ( ) ) ) . collect ( )
22532264 } ) ,
22542265 t. generic_params ,
0 commit comments