diff options
| author | Eric Huss <eric@huss.org> | 2019-11-08 16:15:17 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2019-11-08 16:15:17 -0800 |
| commit | 1907589fbb87e63b2c93808f485f021d2cc81ca5 (patch) | |
| tree | a09ad17405f0eed55cbec551d882dcc38dfcef15 | |
| parent | 9e346646e93cc243567e27bb0f4e8716d56ad1f1 (diff) | |
| download | rust-1907589fbb87e63b2c93808f485f021d2cc81ca5.tar.gz rust-1907589fbb87e63b2c93808f485f021d2cc81ca5.zip | |
rustdoc: Stabilize `edition` annotation.
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 4 | ||||
| -rw-r--r-- | src/test/rustdoc/edition-flag.rs | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 9ff1e1d3119..fc4dc52f127 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -680,9 +680,7 @@ impl LangString { seen_rust_tags = !seen_other_tags || seen_rust_tags; data.no_run = true; } - x if allow_error_code_check && x.starts_with("edition") => { - // allow_error_code_check is true if we're on nightly, which - // is needed for edition support + x if x.starts_with("edition") => { data.edition = x[7..].parse::<Edition>().ok(); } x if allow_error_code_check && x.starts_with("E") && x.len() == 5 => { diff --git a/src/test/rustdoc/edition-flag.rs b/src/test/rustdoc/edition-flag.rs index ddbc2be651d..e54c7d2969b 100644 --- a/src/test/rustdoc/edition-flag.rs +++ b/src/test/rustdoc/edition-flag.rs @@ -1,4 +1,4 @@ -// compile-flags:--test -Z unstable-options +// compile-flags:--test // edition:2018 /// ```rust |
