Skip to content

Commit

Permalink
Enable feature gate for deny(non_exhaustive_omitted_patterns)
Browse files Browse the repository at this point in the history
    error: unknown lint: `non_exhaustive_omitted_patterns`
       --> impl/src/declaration.rs:297:43
        |
    297 |         #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
        |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = note: the `non_exhaustive_omitted_patterns` lint is unstable
        = note: see issue #89554 <rust-lang/rust#89554> for more information
        = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
        = note: `-D unknown-lints` implied by `-D warnings`
  • Loading branch information
dtolnay committed Feb 19, 2023
1 parent f9a4e7f commit 5092123
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impl/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg_attr(all(test, exhaustive), feature(non_exhaustive_omitted_patterns_lint))]
#![allow(
clippy::cast_possible_truncation, // https://github.com/rust-lang/rust-clippy/issues/7486
clippy::needless_pass_by_value,
Expand Down

0 comments on commit 5092123

Please sign in to comment.