@@ -2,9 +2,9 @@ use crate::clean::auto_trait::AutoTraitFinder;
22use crate :: clean:: blanket_impl:: BlanketImplFinder ;
33use crate :: clean:: {
44 inline, Clean , Crate , Deprecation , ExternalCrate , FnDecl , FnRetTy , Generic , GenericArg ,
5- GenericArgs , GenericBound , Generics , GetDefId , ImportSource , Item , ItemEnum , MacroKind , Path ,
6- PathSegment , Primitive , PrimitiveType , ResolvedPath , Span , Stability , Type , TypeBinding ,
7- TypeKind , Visibility , WherePredicate ,
5+ GenericArgs , GenericBound , Generics , GetDefId , ImportSource , Item , ItemEnum , Lifetime ,
6+ MacroKind , Path , PathSegment , Primitive , PrimitiveType , ResolvedPath , Span , Stability , Type ,
7+ TypeBinding , TypeKind , Visibility , WherePredicate ,
88} ;
99use crate :: core:: DocContext ;
1010
@@ -121,7 +121,10 @@ pub fn external_generic_args(
121121 let args: Vec < _ > = substs
122122 . iter ( )
123123 . filter_map ( |kind| match kind. unpack ( ) {
124- GenericArgKind :: Lifetime ( lt) => lt. clean ( cx) . map ( GenericArg :: Lifetime ) ,
124+ GenericArgKind :: Lifetime ( lt) => match lt {
125+ ty:: ReLateBound ( _, ty:: BrAnon ( _) ) => Some ( GenericArg :: Lifetime ( Lifetime :: elided ( ) ) ) ,
126+ _ => lt. clean ( cx) . map ( GenericArg :: Lifetime ) ,
127+ } ,
125128 GenericArgKind :: Type ( _) if skip_self => {
126129 skip_self = false ;
127130 None
0 commit comments