mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
rustdoc: Stabilize edition annotation.
This commit is contained in:
@@ -680,9 +680,7 @@ fn parse(
|
||||
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 => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-flags:--test -Z unstable-options
|
||||
// compile-flags:--test
|
||||
// edition:2018
|
||||
|
||||
/// ```rust
|
||||
|
||||
Reference in New Issue
Block a user