Fix test case

Previously this was using a `.stderr` file, but that does not seem to
work for all cases. This change uses `// error-pattern:` instead.
This commit is contained in:
Eric Holk 2021-07-07 10:28:35 -07:00
parent 8b4f538320
commit 5413d2e529
2 changed files with 1 additions and 12 deletions

View File

@ -1,4 +1,4 @@
// compile-flags: -A unknown_tool::foo
// check-fail
// error-pattern: unknown lint tool: `unknown_tool`
fn main() {}

View File

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