@@ -1537,7 +1537,6 @@ impl<'a> Item<'a> {
1537
1537
}
1538
1538
}
1539
1539
1540
-
1541
1540
impl < ' a > fmt:: Display for Item < ' a > {
1542
1541
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
1543
1542
debug_assert ! ( !self . item. is_stripped( ) ) ;
@@ -1575,6 +1574,9 @@ impl<'a> fmt::Display for Item<'a> {
1575
1574
1576
1575
write ! ( fmt, "</span>" ) ?; // in-band
1577
1576
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
+ }
1578
1580
write ! ( fmt,
1579
1581
r##"<span id='render-detail'>
1580
1582
<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,
1922
1924
generics = f. generics,
1923
1925
where_clause = WhereClause ( & f. generics) ,
1924
1926
decl = f. decl) ?;
1925
- render_stability_since_raw ( w, it. stable_since ( ) , None ) ?;
1926
1927
document ( w, cx, it)
1927
1928
}
1928
1929
@@ -2236,7 +2237,6 @@ fn item_struct(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2236
2237
"" ,
2237
2238
true ) ?;
2238
2239
write ! ( w, "</pre>" ) ?;
2239
- render_stability_since_raw ( w, it. stable_since ( ) , None ) ?;
2240
2240
2241
2241
document ( w, cx, it) ?;
2242
2242
let mut fields = s. fields . iter ( ) . filter ( |f| {
0 commit comments