@@ -1537,7 +1537,6 @@ impl<'a> Item<'a> {
15371537 }
15381538}
15391539
1540-
15411540impl < ' a > fmt:: Display for Item < ' a > {
15421541 fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
15431542 debug_assert ! ( !self . item. is_stripped( ) ) ;
@@ -1575,6 +1574,9 @@ impl<'a> fmt::Display for Item<'a> {
15751574
15761575 write ! ( fmt, "</span>" ) ?; // in-band
15771576 write ! ( fmt, "<span class='out-of-band'>" ) ?;
1577+ if let Some ( version) = self . item . stable_since ( ) {
1578+ write ! ( fmt, "<span class='since'>{}</span>" , version) ?;
1579+ }
15781580 write ! ( fmt,
15791581 r##"<span id='render-detail'>
15801582 <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
@@ -1922,7 +1924,6 @@ fn item_function(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
19221924 generics = f. generics,
19231925 where_clause = WhereClause ( & f. generics) ,
19241926 decl = f. decl) ?;
1925- render_stability_since_raw ( w, it. stable_since ( ) , None ) ?;
19261927 document ( w, cx, it)
19271928}
19281929
@@ -2236,7 +2237,6 @@ fn item_struct(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
22362237 "" ,
22372238 true ) ?;
22382239 write ! ( w, "</pre>" ) ?;
2239- render_stability_since_raw ( w, it. stable_since ( ) , None ) ?;
22402240
22412241 document ( w, cx, it) ?;
22422242 let mut fields = s. fields . iter ( ) . filter ( |f| {
0 commit comments