@@ -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:: { TyParamBounds , WhereClause , href, AbiSpace } ;
72
72
use html:: format:: { VisSpace , Method , UnsafetySpace , MutableSpace } ;
73
73
use html:: format:: fmt_impl_for_trait_page;
@@ -2592,19 +2592,21 @@ fn item_static(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2592
2592
2593
2593
fn item_function ( w : & mut fmt:: Formatter , cx : & Context , it : & clean:: Item ,
2594
2594
f : & clean:: Function ) -> fmt:: Result {
2595
- let name_len = format ! ( "{}{}{}{:#}fn {}{:#}" ,
2595
+ let name_len = format ! ( "{}{}{}{}{ :#}fn {}{:#}" ,
2596
2596
VisSpace ( & it. visibility) ,
2597
2597
ConstnessSpace ( f. header. constness) ,
2598
+ AsyncSpace ( f. header. asyncness) ,
2598
2599
UnsafetySpace ( f. header. unsafety) ,
2599
2600
AbiSpace ( f. header. abi) ,
2600
2601
it. name. as_ref( ) . unwrap( ) ,
2601
2602
f. generics) . len ( ) ;
2602
2603
write ! ( w, "{}<pre class='rust fn'>" , render_spotlight_traits( it) ?) ?;
2603
2604
render_attributes ( w, it) ?;
2604
2605
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>" ,
2606
2607
vis = VisSpace ( & it. visibility) ,
2607
2608
constness = ConstnessSpace ( f. header. constness) ,
2609
+ asyncness = AsyncSpace ( f. header. asyncness) ,
2608
2610
unsafety = UnsafetySpace ( f. header. unsafety) ,
2609
2611
abi = AbiSpace ( f. header. abi) ,
2610
2612
name = it. name. as_ref( ) . unwrap( ) ,
0 commit comments