-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ec3695
commit e3695d3
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//! Test | ||
//! | ||
//! ``` | ||
//! ##[allow(dead_code)] | ||
//! println!("hello world"); | ||
//! ``` |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}; | ||
|
||
fn main() { | ||
let out = bare_rustdoc().input("foo.rs").arg("-Zunstable-options").edition("2024").run().stdout_utf8(); | ||
diff() | ||
.expected_file("output.stdout") | ||
.actual_text("actual", out) | ||
.run(); | ||
} |