Skip to content

Commit 1907589

Browse files
committed
rustdoc: Stabilize edition annotation.
1 parent 9e34664 commit 1907589

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/librustdoc/html/markdown.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,7 @@ impl LangString {
680680
seen_rust_tags = !seen_other_tags || seen_rust_tags;
681681
data.no_run = true;
682682
}
683-
x if allow_error_code_check && x.starts_with("edition") => {
684-
// allow_error_code_check is true if we're on nightly, which
685-
// is needed for edition support
683+
x if x.starts_with("edition") => {
686684
data.edition = x[7..].parse::<Edition>().ok();
687685
}
688686
x if allow_error_code_check && x.starts_with("E") && x.len() == 5 => {

src/test/rustdoc/edition-flag.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags:--test -Z unstable-options
1+
// compile-flags:--test
22
// edition:2018
33

44
/// ```rust

0 commit comments

Comments
 (0)