Skip to content

Commit 470bac6

Browse files
Migrate run-make/allow-warnings-cmdline-stability to rmake.rs
1 parent 21e6de7 commit 470bac6

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
run-make/allocator-shim-circular-deps/Makefile
22
run-make/allow-non-lint-warnings-cmdline/Makefile
3-
run-make/allow-warnings-cmdline-stability/Makefile
43
run-make/archive-duplicate-names/Makefile
54
run-make/atomic-lock-free/Makefile
65
run-make/bare-outfile/Makefile

tests/run-make/allow-warnings-cmdline-stability/Makefile

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Test that -A warnings makes the 'empty trait list for derive' warning go away
2+
3+
use run_make_support::rustc;
4+
5+
fn grep(out: String, look_for: &str) {
6+
if out.contains(look_for) {
7+
panic!("{:?} was found in {:?} whereas it shouldn't have!", look_for, out);
8+
}
9+
}
10+
11+
fn main() {
12+
rustc().input("bar.rs").run();
13+
let output = rustc().input("foo.rs").arg("-A").arg("warnings").command_output();
14+
15+
assert!(output.status.success());
16+
grep(String::from_utf8(output.stdout).unwrap(), "warning");
17+
grep(String::from_utf8(output.stderr).unwrap(), "warning");
18+
}

0 commit comments

Comments
 (0)