Skip to content

Commit e9b74a9

Browse files
committed
Auto merge of #27860 - m4rw3r:rustdoc_unstable_feature_issue, r=alexcrichton
Implemented #27759 Example: ![screen shot 2015-08-16 at 21 45 17](https://cloud.githubusercontent.com/assets/108100/9295040/1fb24d50-4460-11e5-8ab8-81ac5330974a.png)
2 parents 983d2b3 + 6532a08 commit e9b74a9

File tree

10 files changed

+125
-62
lines changed

10 files changed

+125
-62
lines changed

src/liballoc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
7070
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
7171
html_root_url = "https://doc.rust-lang.org/nightly/",
72+
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
7273
test(no_crate_inject))]
7374
#![no_std]
7475
#![cfg_attr(not(stage0), needs_allocator)]

src/libcollections/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2727
html_root_url = "https://doc.rust-lang.org/nightly/",
2828
html_playground_url = "https://play.rust-lang.org/",
29+
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
2930
test(no_crate_inject))]
3031

3132
#![allow(trivial_casts)]

src/libcore/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
5959
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
6060
html_root_url = "https://doc.rust-lang.org/nightly/",
61-
html_playground_url = "https://play.rust-lang.org/")]
61+
html_playground_url = "https://play.rust-lang.org/",
62+
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
6263
#![doc(test(no_crate_inject))]
6364

6465
#![no_core]

src/liblibc/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2222
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2323
html_root_url = "https://doc.rust-lang.org/nightly/",
24-
html_playground_url = "https://play.rust-lang.org/")]
24+
html_playground_url = "https://play.rust-lang.org/",
25+
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
2526
#![cfg_attr(test, feature(test))]
2627

2728
//! Bindings for the C standard library and other platform libraries

src/librustc_unicode/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
3131
html_root_url = "https://doc.rust-lang.org/nightly/",
3232
html_playground_url = "https://play.rust-lang.org/",
33+
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
3334
test(no_crate_inject))]
3435
#![no_std]
3536

src/librustdoc/clean/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,8 @@ pub struct Stability {
26882688
pub feature: String,
26892689
pub since: String,
26902690
pub deprecated_since: String,
2691-
pub reason: String
2691+
pub reason: String,
2692+
pub issue: Option<u32>
26922693
}
26932694

26942695
impl Clean<Stability> for attr::Stability {
@@ -2702,6 +2703,7 @@ impl Clean<Stability> for attr::Stability {
27022703
|istr| istr.to_string()),
27032704
reason: self.reason.as_ref().map_or("".to_string(),
27042705
|interned| interned.to_string()),
2706+
issue: self.issue,
27052707
}
27062708
}
27072709
}
@@ -2717,6 +2719,7 @@ impl<'a> Clean<Stability> for &'a attr::Stability {
27172719
|istr| istr.to_string()),
27182720
reason: self.reason.as_ref().map_or("".to_string(),
27192721
|interned| interned.to_string()),
2722+
issue: self.issue,
27202723
}
27212724
}
27222725
}

0 commit comments

Comments
 (0)