We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
edition
1 parent 9e34664 commit 1907589Copy full SHA for 1907589
src/librustdoc/html/markdown.rs
@@ -680,9 +680,7 @@ impl LangString {
680
seen_rust_tags = !seen_other_tags || seen_rust_tags;
681
data.no_run = true;
682
}
683
- x if allow_error_code_check && x.starts_with("edition") => {
684
- // allow_error_code_check is true if we're on nightly, which
685
- // is needed for edition support
+ x if x.starts_with("edition") => {
686
data.edition = x[7..].parse::<Edition>().ok();
687
688
x if allow_error_code_check && x.starts_with("E") && x.len() == 5 => {
src/test/rustdoc/edition-flag.rs
@@ -1,4 +1,4 @@
1
-// compile-flags:--test -Z unstable-options
+// compile-flags:--test
2
// edition:2018
3
4
/// ```rust
0 commit comments