about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/ui/lint/command-line-register-unknown-lint-tool.rs2
-rw-r--r--src/test/ui/lint/command-line-register-unknown-lint-tool.stderr11
2 files changed, 1 insertions, 12 deletions
diff --git a/src/test/ui/lint/command-line-register-unknown-lint-tool.rs b/src/test/ui/lint/command-line-register-unknown-lint-tool.rs
index 435e951c809..59fc0200095 100644
--- a/src/test/ui/lint/command-line-register-unknown-lint-tool.rs
+++ b/src/test/ui/lint/command-line-register-unknown-lint-tool.rs
@@ -1,4 +1,4 @@
 // compile-flags: -A unknown_tool::foo
-// check-fail
+// error-pattern: unknown lint tool: `unknown_tool`
 
 fn main() {}
diff --git a/src/test/ui/lint/command-line-register-unknown-lint-tool.stderr b/src/test/ui/lint/command-line-register-unknown-lint-tool.stderr
deleted file mode 100644
index b7c5893a0ea..00000000000
--- a/src/test/ui/lint/command-line-register-unknown-lint-tool.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error[E0602]: unknown lint tool: `unknown_tool`
-   |
-   = note: requested on the command line with `-A foo`
-
-error[E0602]: unknown lint tool: `unknown_tool`
-   |
-   = note: requested on the command line with `-A foo`
-
-error: aborting due to 2 previous errors
-
-For more information about this error, try `rustc --explain E0602`.