mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Move unneeded_field_pattern to restriction group
Fixes https://github.com/rust-lang/rust-clippy/issues/1741
This commit is contained in:
parent
06f0ab03ef
commit
78a2507736
3 changed files with 3 additions and 4 deletions
|
@ -1033,6 +1033,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&methods::RESULT_UNWRAP_USED),
|
||||
LintId::of(&methods::WRONG_PUB_SELF_CONVENTION),
|
||||
LintId::of(&misc::FLOAT_CMP_CONST),
|
||||
LintId::of(&misc_early::UNNEEDED_FIELD_PATTERN),
|
||||
LintId::of(&missing_doc::MISSING_DOCS_IN_PRIVATE_ITEMS),
|
||||
LintId::of(&missing_inline::MISSING_INLINE_IN_PUBLIC_ITEMS),
|
||||
LintId::of(&modulo_arithmetic::MODULO_ARITHMETIC),
|
||||
|
@ -1270,7 +1271,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&misc_early::MIXED_CASE_HEX_LITERALS),
|
||||
LintId::of(&misc_early::REDUNDANT_CLOSURE_CALL),
|
||||
LintId::of(&misc_early::REDUNDANT_PATTERN),
|
||||
LintId::of(&misc_early::UNNEEDED_FIELD_PATTERN),
|
||||
LintId::of(&misc_early::UNNEEDED_WILDCARD_PATTERN),
|
||||
LintId::of(&misc_early::ZERO_PREFIXED_LITERAL),
|
||||
LintId::of(&mut_key::MUTABLE_KEY_TYPE),
|
||||
|
@ -1433,7 +1433,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&misc_early::DUPLICATE_UNDERSCORE_ARGUMENT),
|
||||
LintId::of(&misc_early::MIXED_CASE_HEX_LITERALS),
|
||||
LintId::of(&misc_early::REDUNDANT_PATTERN),
|
||||
LintId::of(&misc_early::UNNEEDED_FIELD_PATTERN),
|
||||
LintId::of(&mut_reference::UNNECESSARY_MUT_PASSED),
|
||||
LintId::of(&neg_multiply::NEG_MULTIPLY),
|
||||
LintId::of(&new_without_default::NEW_WITHOUT_DEFAULT),
|
||||
|
|
|
@ -25,7 +25,7 @@ declare_clippy_lint! {
|
|||
/// let { a: _, b: ref b, c: _ } = ..
|
||||
/// ```
|
||||
pub UNNEEDED_FIELD_PATTERN,
|
||||
style,
|
||||
restriction,
|
||||
"struct fields bound to a wildcard instead of using `..`"
|
||||
}
|
||||
|
||||
|
|
|
@ -2228,7 +2228,7 @@ pub const ALL_LINTS: [Lint; 355] = [
|
|||
},
|
||||
Lint {
|
||||
name: "unneeded_field_pattern",
|
||||
group: "style",
|
||||
group: "restriction",
|
||||
desc: "struct fields bound to a wildcard instead of using `..`",
|
||||
deprecation: None,
|
||||
module: "misc_early",
|
||||
|
|
Loading…
Reference in a new issue