We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17dfae7 commit d442a37Copy full SHA for d442a37
src/librustdoc/html/render/mod.rs
@@ -1676,11 +1676,12 @@ fn render_rightside(
1676
containing_item.stable_since(tcx),
1677
const_stable_since,
1678
);
1679
- if has_stability {
+ let mut tmp_buf = Buffer::empty_from(w);
1680
+ write_srclink(cx, item, &mut tmp_buf);
1681
+ if has_stability && !tmp_buf.is_empty() {
1682
w.write_str(" · ");
1683
}
-
- write_srclink(cx, item, w);
1684
+ w.push_buffer(tmp_buf);
1685
w.write_str("</div>");
1686
1687
0 commit comments