]> git.lizzy.rs Git - rust.git/commitdiff
Suggest to use a wrapper in the wiki for the empty_enum lint
authorOwen Sanchez <pengowen816@gmail.com>
Sun, 5 Feb 2017 05:09:54 +0000 (22:09 -0700)
committerOwen Sanchez <pengowen816@gmail.com>
Sun, 5 Feb 2017 05:09:54 +0000 (22:09 -0700)
clippy_lints/src/empty_enum.rs

index f930a8599e27d8495be9d5139af212d4932b892c..896087f47064edde0755eba6d725e6b0d0d33ba5 100644 (file)
@@ -6,7 +6,8 @@
 
 /// **What it does:** Checks for `enum`s with no variants.
 ///
-/// **Why is this bad?** Enum's with no variants should be replaced with `!`.
+/// **Why is this bad?** Enum's with no variants should be replaced with `!`, the uninhabited type,
+/// or a wrapper around it.
 ///
 /// **Known problems:** None.
 ///