Ignore unnested_or_patterns suggesting unstable code

Clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
This commit is contained in:
David Tolnay 2020-06-10 19:38:52 -07:00
parent 0856a2c101
commit 95b1a5d3d9
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 8 additions and 2 deletions

View File

@ -95,6 +95,8 @@
#![cfg_attr(
feature = "cargo-clippy",
allow(
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
unnested_or_patterns,
// not available in our oldest supported compiler
checked_conversions,
empty_enum,

View File

@ -24,7 +24,9 @@
clippy::too_many_arguments,
clippy::trivially_copy_pass_by_ref,
clippy::used_underscore_binding,
clippy::wildcard_in_or_patterns
clippy::wildcard_in_or_patterns,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
clippy::unnested_or_patterns,
)]
// Ignored clippy_pedantic lints
#![allow(

View File

@ -7,7 +7,9 @@
cognitive_complexity,
redundant_field_names,
trivially_copy_pass_by_ref,
wildcard_in_or_patterns
wildcard_in_or_patterns,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
unnested_or_patterns,
)
)]