Skip to content

Commit

Permalink
rustdoc: Stabilize edition annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Nov 9, 2019
1 parent 9e34664 commit 1907589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/edition-flag.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-flags:--test -Z unstable-options
// compile-flags:--test
// edition:2018

/// ```rust
Expand Down

0 comments on commit 1907589

Please sign in to comment.