@@ -2,9 +2,9 @@ use crate::clean::auto_trait::AutoTraitFinder;
2
2
use crate :: clean:: blanket_impl:: BlanketImplFinder ;
3
3
use crate :: clean:: {
4
4
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 ,
8
8
} ;
9
9
use crate :: core:: DocContext ;
10
10
@@ -121,7 +121,10 @@ pub fn external_generic_args(
121
121
let args: Vec < _ > = substs
122
122
. iter ( )
123
123
. 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
+ } ,
125
128
GenericArgKind :: Type ( _) if skip_self => {
126
129
skip_self = false ;
127
130
None
0 commit comments