summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/wildcard_enum_match_arm.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/src/docs/wildcard_enum_match_arm.txt')
-rw-r--r--src/tools/clippy/src/docs/wildcard_enum_match_arm.txt25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/tools/clippy/src/docs/wildcard_enum_match_arm.txt b/src/tools/clippy/src/docs/wildcard_enum_match_arm.txt
deleted file mode 100644
index 09807c01c..000000000
--- a/src/tools/clippy/src/docs/wildcard_enum_match_arm.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-### What it does
-Checks for wildcard enum matches using `_`.
-
-### Why is this bad?
-New enum variants added by library updates can be missed.
-
-### Known problems
-Suggested replacements may be incorrect if guards exhaustively cover some
-variants, and also may not use correct path to enum if it's not present in the current scope.
-
-### Example
-```
-match x {
- Foo::A(_) => {},
- _ => {},
-}
-```
-
-Use instead:
-```
-match x {
- Foo::A(_) => {},
- Foo::B(_) => {},
-}
-``` \ No newline at end of file