diff options
| author | ThibsG <Thibs@debian.com> | 2019-12-24 16:42:09 +0100 |
|---|---|---|
| committer | ThibsG <Thibs@debian.com> | 2020-01-07 18:48:16 +0100 |
| commit | 96c41988323cd4c3d211e494fd3e143caf11f8cd (patch) | |
| tree | 61235623f2297cd9948aef289b91457a42ea6a04 /src | |
| parent | c09206899656f5730f8007dbc86385122c34a9ca (diff) | |
| download | rust-96c41988323cd4c3d211e494fd3e143caf11f8cd.tar.gz rust-96c41988323cd4c3d211e494fd3e143caf11f8cd.zip | |
New lint: pats_with_wild_match_arm
- Wildcard use with other pattern in same match arm
Diffstat (limited to 'src')
| -rw-r--r-- | src/lintlist/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index 1086f5e48f9..a6b31876a7a 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -1569,6 +1569,13 @@ pub const ALL_LINTS: [Lint; 345] = [ module: "path_buf_push_overwrite", }, Lint { + name: "pats_with_wild_match_arm", + group: "restriction", + desc: "a wildcard pattern used with others patterns in same match arm", + deprecation: None, + module: "matches", + }, + Lint { name: "possible_missing_comma", group: "correctness", desc: "possible missing comma in array", |
