We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ec3695 commit e3695d3Copy full SHA for e3695d3
tests/run-make/rustdoc-2024-hash-doctest/foo.rs
@@ -0,0 +1,6 @@
1
+//! Test
2
+//!
3
+//! ```
4
+//! ##[allow(dead_code)]
5
+//! println!("hello world");
6
tests/run-make/rustdoc-2024-hash-doctest/output.stdout
tests/run-make/rustdoc-2024-hash-doctest/rmake.rs
@@ -0,0 +1,13 @@
+// This test ensures that `##` are not emitting a warning when generating
+// docs with the 2024 edition.
+// Regression test for <https://github.com/rust-lang/rust/issues/136899>.
+
+use run_make_support::{bare_rustdoc, diff};
7
+fn main() {
8
+ let out = bare_rustdoc().input("foo.rs").arg("-Zunstable-options").edition("2024").run().stdout_utf8();
9
+ diff()
10
+ .expected_file("output.stdout")
11
+ .actual_text("actual", out)
12
+ .run();
13
+}
0 commit comments