@@ -67,7 +67,7 @@ use clean::{self, AttributesExt, GetDefId, SelfTy, Mutability};
6767use doctree;
6868use fold:: DocFolder ;
6969use html:: escape:: Escape ;
70- use html:: format:: { ConstnessSpace } ;
70+ use html:: format:: { AsyncSpace , ConstnessSpace } ;
7171use html:: format:: { TyParamBounds , WhereClause , href, AbiSpace } ;
7272use html:: format:: { VisSpace , Method , UnsafetySpace , MutableSpace } ;
7373use html:: format:: fmt_impl_for_trait_page;
@@ -2592,19 +2592,21 @@ fn item_static(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
25922592
25932593fn item_function ( w : & mut fmt:: Formatter , cx : & Context , it : & clean:: Item ,
25942594 f : & clean:: Function ) -> fmt:: Result {
2595- let name_len = format ! ( "{}{}{}{:#}fn {}{:#}" ,
2595+ let name_len = format ! ( "{}{}{}{}{ :#}fn {}{:#}" ,
25962596 VisSpace ( & it. visibility) ,
25972597 ConstnessSpace ( f. header. constness) ,
2598+ AsyncSpace ( f. header. asyncness) ,
25982599 UnsafetySpace ( f. header. unsafety) ,
25992600 AbiSpace ( f. header. abi) ,
26002601 it. name. as_ref( ) . unwrap( ) ,
26012602 f. generics) . len ( ) ;
26022603 write ! ( w, "{}<pre class='rust fn'>" , render_spotlight_traits( it) ?) ?;
26032604 render_attributes ( w, it) ?;
26042605 write ! ( w,
2605- "{vis}{constness}{unsafety}{abi}fn {name}{generics}{decl}{where_clause}</pre>" ,
2606+ "{vis}{constness}{asyncness}{ unsafety}{abi}fn {name}{generics}{decl}{where_clause}</pre>" ,
26062607 vis = VisSpace ( & it. visibility) ,
26072608 constness = ConstnessSpace ( f. header. constness) ,
2609+ asyncness = AsyncSpace ( f. header. asyncness) ,
26082610 unsafety = UnsafetySpace ( f. header. unsafety) ,
26092611 abi = AbiSpace ( f. header. abi) ,
26102612 name = it. name. as_ref( ) . unwrap( ) ,
0 commit comments