about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-13 12:52:05 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-13 12:55:55 +0200
commiteca8d209d9c75ed0ba7ce434d62d9460d42271f5 (patch)
tree3352cba99c1fffa578e4fb068de9dce92059284a
parent96f9fe5488e74f8b0f75c993ffbcca2c14ba9d01 (diff)
downloadrust-eca8d209d9c75ed0ba7ce434d62d9460d42271f5.tar.gz
rust-eca8d209d9c75ed0ba7ce434d62d9460d42271f5.zip
Make `run-make/allow-non-lint-warnings-cmdline` into a ui test
-rw-r--r--tests/run-make/allow-non-lint-warnings-cmdline/rmake.rs8
-rw-r--r--tests/ui/allow-non-lint-warnings.rs (renamed from tests/run-make/allow-non-lint-warnings-cmdline/foo.rs)3
2 files changed, 3 insertions, 8 deletions
diff --git a/tests/run-make/allow-non-lint-warnings-cmdline/rmake.rs b/tests/run-make/allow-non-lint-warnings-cmdline/rmake.rs
deleted file mode 100644
index 3866ed3f5be..00000000000
--- a/tests/run-make/allow-non-lint-warnings-cmdline/rmake.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-// 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");
-}
diff --git a/tests/run-make/allow-non-lint-warnings-cmdline/foo.rs b/tests/ui/allow-non-lint-warnings.rs
index 02e8ccabf79..f8f5a78ebff 100644
--- a/tests/run-make/allow-non-lint-warnings-cmdline/foo.rs
+++ b/tests/ui/allow-non-lint-warnings.rs
@@ -1,3 +1,6 @@
+//@ compile-flags: -Awarnings
+//@ check-pass
+
 #[derive()]
 #[derive(Copy, Clone)]
 pub struct Foo;