Migrate run-make/allow-non-lint-warnings-cmdline
to rmake.rs
This commit is contained in:
parent
9314831b45
commit
96f9fe5488
@ -1,5 +1,4 @@
|
||||
run-make/allocator-shim-circular-deps/Makefile
|
||||
run-make/allow-non-lint-warnings-cmdline/Makefile
|
||||
run-make/archive-duplicate-names/Makefile
|
||||
run-make/atomic-lock-free/Makefile
|
||||
run-make/branch-protection-check-IBT/Makefile
|
||||
|
@ -1,12 +0,0 @@
|
||||
# ignore-cross-compile
|
||||
include ../tools.mk
|
||||
|
||||
# Test that -A warnings makes the 'empty trait list for derive' warning go away
|
||||
OUT=$(shell $(RUSTC) foo.rs -A warnings 2>&1 | grep "warning" )
|
||||
|
||||
all: foo
|
||||
test -z '$(OUT)'
|
||||
|
||||
# This is just to make sure the above command actually succeeds
|
||||
foo:
|
||||
$(RUSTC) foo.rs -A warnings
|
8
tests/run-make/allow-non-lint-warnings-cmdline/rmake.rs
Normal file
8
tests/run-make/allow-non-lint-warnings-cmdline/rmake.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// Test that -A warnings makes the 'empty trait list for derive' warning go away.
|
||||
|
||||
use run_make_support::rustc;
|
||||
|
||||
fn main() {
|
||||
let output = rustc().input("foo.rs").arg("-Awarnings").run();
|
||||
output.assert_stderr_not_contains("warning");
|
||||
}
|
Loading…
Reference in New Issue
Block a user