rustdoc: Stabilize `edition` annotation.

This commit is contained in:
Eric Huss 2019-11-08 16:15:17 -08:00
parent 9e346646e9
commit 1907589fbb
2 changed files with 2 additions and 4 deletions

View File

@ -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 => {

View File

@ -1,4 +1,4 @@
// compile-flags:--test -Z unstable-options
// compile-flags:--test
// edition:2018
/// ```rust