Migrate run-make/allow-non-lint-warnings-cmdline to rmake.rs

This commit is contained in:
Guillaume Gomez 2024-06-13 11:21:25 +02:00
parent 9314831b45
commit 96f9fe5488
3 changed files with 8 additions and 13 deletions

View File

@ -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

View File

@ -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

View 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");
}