Skip to content

Commit 11ab30c

Browse files
committed
Move unneeded_field_pattern to pedantic group
Fixes rust-lang#1741
1 parent 06f0ab0 commit 11ab30c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ document.
88

99
[69f99e7...master](https://github.com/rust-lang/rust-clippy/compare/69f99e7...master)
1010

11+
* Move `unneeded_field_pattern` to pedantic group [#1741](https://github.com/rust-lang/rust-clippy/issues/1741)
12+
1113
## Rust 1.42
1214

1315
Current Beta

clippy_lints/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10821082
LintId::of(&methods::OPTION_MAP_UNWRAP_OR_ELSE),
10831083
LintId::of(&methods::RESULT_MAP_UNWRAP_OR_ELSE),
10841084
LintId::of(&misc::USED_UNDERSCORE_BINDING),
1085+
LintId::of(&misc_early::UNNEEDED_FIELD_PATTERN),
10851086
LintId::of(&misc_early::UNSEPARATED_LITERAL_SUFFIX),
10861087
LintId::of(&mut_mut::MUT_MUT),
10871088
LintId::of(&needless_continue::NEEDLESS_CONTINUE),
@@ -1270,7 +1271,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12701271
LintId::of(&misc_early::MIXED_CASE_HEX_LITERALS),
12711272
LintId::of(&misc_early::REDUNDANT_CLOSURE_CALL),
12721273
LintId::of(&misc_early::REDUNDANT_PATTERN),
1273-
LintId::of(&misc_early::UNNEEDED_FIELD_PATTERN),
12741274
LintId::of(&misc_early::UNNEEDED_WILDCARD_PATTERN),
12751275
LintId::of(&misc_early::ZERO_PREFIXED_LITERAL),
12761276
LintId::of(&mut_key::MUTABLE_KEY_TYPE),
@@ -1433,7 +1433,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14331433
LintId::of(&misc_early::DUPLICATE_UNDERSCORE_ARGUMENT),
14341434
LintId::of(&misc_early::MIXED_CASE_HEX_LITERALS),
14351435
LintId::of(&misc_early::REDUNDANT_PATTERN),
1436-
LintId::of(&misc_early::UNNEEDED_FIELD_PATTERN),
14371436
LintId::of(&mut_reference::UNNECESSARY_MUT_PASSED),
14381437
LintId::of(&neg_multiply::NEG_MULTIPLY),
14391438
LintId::of(&new_without_default::NEW_WITHOUT_DEFAULT),

clippy_lints/src/misc_early.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ declare_clippy_lint! {
2525
/// let { a: _, b: ref b, c: _ } = ..
2626
/// ```
2727
pub UNNEEDED_FIELD_PATTERN,
28-
style,
28+
pedantic,
2929
"struct fields bound to a wildcard instead of using `..`"
3030
}
3131

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,7 @@ pub const ALL_LINTS: [Lint; 355] = [
22282228
},
22292229
Lint {
22302230
name: "unneeded_field_pattern",
2231-
group: "style",
2231+
group: "pedantic",
22322232
desc: "struct fields bound to a wildcard instead of using `..`",
22332233
deprecation: None,
22342234
module: "misc_early",

0 commit comments

Comments
 (0)