2021-07-08 21:35:26 -07:00
|
|
|
// Checks that rustc correctly errors when passed an invalid lint with
|
2021-07-21 15:40:52 +02:00
|
|
|
// `--force-warn`. This is a regression test for issue #86958.
|
2023-08-28 20:28:51 +01:00
|
|
|
|
|
|
|
//@ check-pass
|
2021-07-24 01:08:33 -07:00
|
|
|
//@ compile-flags: --force-warn foo-qux
|
2025-04-12 22:40:34 +03:00
|
|
|
//@ dont-require-annotations: NOTE
|
2021-07-08 21:35:26 -07:00
|
|
|
|
|
|
|
fn main() {}
|
2025-03-29 02:41:32 +03:00
|
|
|
|
|
|
|
//~? WARN unknown lint: `foo_qux`
|
|
|
|
//~? WARN unknown lint: `foo_qux`
|
|
|
|
//~? WARN unknown lint: `foo_qux`
|
2025-04-12 22:40:34 +03:00
|
|
|
//~? NOTE requested on the command line with `--force-warn foo_qux`
|
|
|
|
//~? NOTE `#[warn(unknown_lints)]` on by default
|