Skip to content

Commit 98c7519

Browse files
committed
Rollup merge of #30828 - wheals:fix-dead-links, r=steveklabnik
See [the intrinsics page](https://doc.rust-lang.org/nightly/core/intrinsics/index.html) for example.
2 parents 9036c82 + 30779d4 commit 98c7519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,10 +1819,10 @@ fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Optio
18191819
} else if stab.level == stability::Unstable {
18201820
let unstable_extra = if show_reason {
18211821
match (!stab.feature.is_empty(), &cx.issue_tracker_base_url, stab.issue) {
1822-
(true, &Some(ref tracker_url), Some(issue_no)) =>
1822+
(true, &Some(ref tracker_url), Some(issue_no)) if issue_no > 0 =>
18231823
format!(" (<code>{}</code> <a href=\"{}{}\">#{}</a>)",
18241824
Escape(&stab.feature), tracker_url, issue_no, issue_no),
1825-
(false, &Some(ref tracker_url), Some(issue_no)) =>
1825+
(false, &Some(ref tracker_url), Some(issue_no)) if issue_no > 0 =>
18261826
format!(" (<a href=\"{}{}\">#{}</a>)", Escape(&tracker_url), issue_no,
18271827
issue_no),
18281828
(true, _, _) =>

0 commit comments

Comments
 (0)