rustdoc: Stabilize edition
annotation.
This commit is contained in:
parent
9e346646e9
commit
1907589fbb
2 changed files with 2 additions and 4 deletions
|
@ -680,9 +680,7 @@ impl LangString {
|
||||||
seen_rust_tags = !seen_other_tags || seen_rust_tags;
|
seen_rust_tags = !seen_other_tags || seen_rust_tags;
|
||||||
data.no_run = true;
|
data.no_run = true;
|
||||||
}
|
}
|
||||||
x if allow_error_code_check && x.starts_with("edition") => {
|
x if x.starts_with("edition") => {
|
||||||
// allow_error_code_check is true if we're on nightly, which
|
|
||||||
// is needed for edition support
|
|
||||||
data.edition = x[7..].parse::<Edition>().ok();
|
data.edition = x[7..].parse::<Edition>().ok();
|
||||||
}
|
}
|
||||||
x if allow_error_code_check && x.starts_with("E") && x.len() == 5 => {
|
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
|
// edition:2018
|
||||||
|
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue