Skip to content

Commit f9aabe4

Browse files
committed
Rewrite and rename issue-22131 to rmake
1 parent f00f850 commit f9aabe4

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

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ run-make/interdependent-c-libraries/Makefile
4444
run-make/issue-107094/Makefile
4545
run-make/issue-14698/Makefile
4646
run-make/issue-15460/Makefile
47-
run-make/issue-22131/Makefile
4847
run-make/issue-25581/Makefile
4948
run-make/issue-26006/Makefile
5049
run-make/issue-28595/Makefile

tests/run-make/issue-22131/Makefile

-8
This file was deleted.
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)