Skip to content

Commit 9dc08e3

Browse files
committed
Rewrite and rename issue-22131 to rmake
1 parent b01a977 commit 9dc08e3

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ run-make/interdependent-c-libraries/Makefile
3838
run-make/issue-107094/Makefile
3939
run-make/issue-14698/Makefile
4040
run-make/issue-15460/Makefile
41-
run-make/issue-22131/Makefile
4241
run-make/issue-26006/Makefile
4342
run-make/issue-28595/Makefile
4443
run-make/issue-33329/Makefile

tests/run-make/issue-22131/Makefile

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// A rustdoc bug caused the `feature=bar` syntax for the cfg flag to be interpreted
2+
// wrongly, with `feature=bar` instead of just `bar` being understood as the feature name.
3+
// After this was fixed in #22135, this test checks that this bug does not make a resurgence.
4+
// See https://github.com/rust-lang/rust/issues/22131
5+
6+
//FIXME(Oneirical): try test-various
7+
8+
use run_make_support::{rustc, rustdoc};
9+
10+
fn main() {
11+
rustc().cfg(r#"feature="bar""#).crate_type("lib").input("foo.rs").run();
12+
rustdoc()
13+
.arg("--test")
14+
.arg("--cfg")
15+
.arg(r#"feature="bar""#)
16+
.input("foo.rs")
17+
.run()
18+
.assert_stdout_contains("foo.rs - foo (line 1) ... ok");
19+
}

0 commit comments

Comments
 (0)