Skip to content

Commit 5092123

Browse files
committed
Enable feature gate for deny(non_exhaustive_omitted_patterns)
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`
1 parent f9a4e7f commit 5092123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

impl/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg_attr(all(test, exhaustive), feature(non_exhaustive_omitted_patterns_lint))]
12
#![allow(
23
clippy::cast_possible_truncation, // https://github.com/rust-lang/rust-clippy/issues/7486
34
clippy::needless_pass_by_value,

0 commit comments

Comments
 (0)