rust/tests/ui/lint/cli-unknown-force-warn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
459 B
Rust
Raw Normal View History

// 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.
//@ check-pass
//@ compile-flags: --force-warn foo-qux
//@ dont-require-annotations: NOTE
fn main() {}
//~? WARN unknown lint: `foo_qux`
//~? WARN unknown lint: `foo_qux`
//~? WARN unknown lint: `foo_qux`
//~? NOTE requested on the command line with `--force-warn foo_qux`
//~? NOTE `#[warn(unknown_lints)]` on by default