@@ -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:: { GenericBounds , WhereClause , href, AbiSpace } ;
7272use html:: format:: { VisSpace , Method , UnsafetySpace , MutableSpace } ;
7373use html:: format:: fmt_impl_for_trait_page;
@@ -2574,19 +2574,21 @@ fn item_static(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
25742574
25752575fn item_function ( w : & mut fmt:: Formatter , cx : & Context , it : & clean:: Item ,
25762576 f : & clean:: Function ) -> fmt:: Result {
2577- let name_len = format ! ( "{}{}{}{:#}fn {}{:#}" ,
2577+ let name_len = format ! ( "{}{}{}{}{ :#}fn {}{:#}" ,
25782578 VisSpace ( & it. visibility) ,
25792579 ConstnessSpace ( f. header. constness) ,
2580+ AsyncSpace ( f. header. asyncness) ,
25802581 UnsafetySpace ( f. header. unsafety) ,
25812582 AbiSpace ( f. header. abi) ,
25822583 it. name. as_ref( ) . unwrap( ) ,
25832584 f. generics) . len ( ) ;
25842585 write ! ( w, "{}<pre class='rust fn'>" , render_spotlight_traits( it) ?) ?;
25852586 render_attributes ( w, it) ?;
25862587 write ! ( w,
2587- "{vis}{constness}{unsafety}{abi}fn {name}{generics}{decl}{where_clause}</pre>" ,
2588+ "{vis}{constness}{asyncness}{ unsafety}{abi}fn {name}{generics}{decl}{where_clause}</pre>" ,
25882589 vis = VisSpace ( & it. visibility) ,
25892590 constness = ConstnessSpace ( f. header. constness) ,
2591+ asyncness = AsyncSpace ( f. header. asyncness) ,
25902592 unsafety = UnsafetySpace ( f. header. unsafety) ,
25912593 abi = AbiSpace ( f. header. abi) ,
25922594 name = it. name. as_ref( ) . unwrap( ) ,
0 commit comments