@@ -10,9 +10,9 @@ use rustc_span::hygiene::MacroKind;
1010use rustc_span:: symbol:: { kw, sym, Symbol } ;
1111
1212use super :: {
13- collect_paths_for_type, document, ensure_trailing_slash, item_ty_to_strs, render_assoc_item ,
14- render_assoc_items, render_attributes, render_impl, render_stability_since_raw , spotlight_decl ,
15- write_srclink, AssocItemLink , Context ,
13+ collect_paths_for_type, document, ensure_trailing_slash, item_ty_to_strs, notable_traits_decl ,
14+ render_assoc_item , render_assoc_items, render_attributes, render_impl,
15+ render_stability_since_raw , write_srclink, AssocItemLink , Context ,
1616} ;
1717use crate :: clean:: { self , GetDefId } ;
1818use crate :: formats:: cache:: Cache ;
@@ -381,7 +381,7 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
381381 write ! (
382382 w,
383383 "{vis}{constness}{asyncness}{unsafety}{abi}fn \
384- {name}{generics}{decl}{spotlight }{where_clause}</pre>",
384+ {name}{generics}{decl}{notable_traits }{where_clause}</pre>",
385385 vis = it. visibility. print_with_space( cx. tcx( ) , it. def_id, cx. cache( ) ) ,
386386 constness = f. header. constness. print_with_space( ) ,
387387 asyncness = f. header. asyncness. print_with_space( ) ,
@@ -391,7 +391,7 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
391391 generics = f. generics. print( cx. cache( ) , cx. tcx( ) ) ,
392392 where_clause = print_where_clause( & f. generics, cx. cache( ) , cx. tcx( ) , 0 , true ) ,
393393 decl = f. decl. full_print( cx. cache( ) , cx. tcx( ) , header_len, 0 , f. header. asyncness) ,
394- spotlight = spotlight_decl ( & f. decl, cx. cache( ) , cx. tcx( ) ) ,
394+ notable_traits = notable_traits_decl ( & f. decl, cx. cache( ) , cx. tcx( ) ) ,
395395 ) ;
396396 document ( w, cx, it, None )
397397}
0 commit comments