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:
parent
8b4f538320
commit
5413d2e529
2 changed files with 1 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
// compile-flags: -A unknown_tool::foo
|
||||
// check-fail
|
||||
// error-pattern: unknown lint tool: `unknown_tool`
|
||||
|
||||
fn main() {}
|
||||
|
|
|
@ -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`.
|
Loading…
Add table
Add a link
Reference in a new issue