@@ -67,7 +67,7 @@ use clean::{self, AttributesExt, GetDefId, SelfTy, Mutability};
67
67
use doctree;
68
68
use fold:: DocFolder ;
69
69
use html:: escape:: Escape ;
70
- use html:: format:: { ConstnessSpace } ;
70
+ use html:: format:: { AsyncSpace , ConstnessSpace } ;
71
71
use html:: format:: { GenericBounds , WhereClause , href, AbiSpace } ;
72
72
use html:: format:: { VisSpace , Method , UnsafetySpace , MutableSpace } ;
73
73
use html:: format:: fmt_impl_for_trait_page;
@@ -2574,19 +2574,21 @@ fn item_static(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2574
2574
2575
2575
fn item_function ( w : & mut fmt:: Formatter , cx : & Context , it : & clean:: Item ,
2576
2576
f : & clean:: Function ) -> fmt:: Result {
2577
- let name_len = format ! ( "{}{}{}{:#}fn {}{:#}" ,
2577
+ let name_len = format ! ( "{}{}{}{}{ :#}fn {}{:#}" ,
2578
2578
VisSpace ( & it. visibility) ,
2579
2579
ConstnessSpace ( f. header. constness) ,
2580
+ AsyncSpace ( f. header. asyncness) ,
2580
2581
UnsafetySpace ( f. header. unsafety) ,
2581
2582
AbiSpace ( f. header. abi) ,
2582
2583
it. name. as_ref( ) . unwrap( ) ,
2583
2584
f. generics) . len ( ) ;
2584
2585
write ! ( w, "{}<pre class='rust fn'>" , render_spotlight_traits( it) ?) ?;
2585
2586
render_attributes ( w, it) ?;
2586
2587
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>" ,
2588
2589
vis = VisSpace ( & it. visibility) ,
2589
2590
constness = ConstnessSpace ( f. header. constness) ,
2591
+ asyncness = AsyncSpace ( f. header. asyncness) ,
2590
2592
unsafety = UnsafetySpace ( f. header. unsafety) ,
2591
2593
abi = AbiSpace ( f. header. abi) ,
2592
2594
name = it. name. as_ref( ) . unwrap( ) ,
0 commit comments