about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Hamilton <alex.hamilton@ou.edu>2019-01-12 17:45:16 -0600
committerAlex Hamilton <alex.hamilton@ou.edu>2019-01-29 15:33:04 -0600
commit1b3c3d073af9a022b7cfb620d455d25415f7ddc4 (patch)
treec138c76069b18d5316b59836c48b2a6dbfde61e9
parent0da18677f733f392ef7fa8d833ade3b66bf83f9a (diff)
downloadrust-1b3c3d073af9a022b7cfb620d455d25415f7ddc4.tar.gz
rust-1b3c3d073af9a022b7cfb620d455d25415f7ddc4.zip
Change match_wild lint name to WILDCARD_MATCH_ARM.
Also fix message capitalization.
-rw-r--r--clippy_lints/src/matches.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs
index 4be045175bb..bdade6ee19e 100644
--- a/clippy_lints/src/matches.rs
+++ b/clippy_lints/src/matches.rs
@@ -201,7 +201,7 @@ declare_clippy_lint! {
 /// }
 /// ```
 declare_clippy_lint! {
-    pub MATCH_WILD,
+    pub WILDCARD_MATCH_ARM,
     restriction,
     "a wildcard match arm using `_`"
 }
@@ -219,7 +219,7 @@ impl LintPass for MatchPass {
             MATCH_OVERLAPPING_ARM,
             MATCH_WILD_ERR_ARM,
             MATCH_AS_REF,
-            MATCH_WILD
+            WILDCARD_MATCH_ARM
         )
     }
 
@@ -469,9 +469,9 @@ fn check_wild_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
         for arm in arms {
             if is_wild(&arm.pats[0]) {
                 span_note_and_lint(cx,
-                    MATCH_WILD,
+                    WILDCARD_MATCH_ARM,
                     arm.pats[0].span,
-                    "Wildcard match will miss any future added variants.",
+                    "wildcard match will miss any future added variants.",
                     arm.pats[0].span,
                     "to resolve, match each variant explicitly");
             }