about summary refs log tree commit diff
diff options
context:
space:
mode:
authornahuakang <kangnahua@gmail.com>2020-12-28 20:44:21 +0100
committernahuakang <kangnahua@gmail.com>2020-12-28 20:45:56 +0100
commit275988cb73e5ad9e7628c7eb424be9cdcec57284 (patch)
tree6ed4006f0f17a868201ea3e29b124e2f16e3b417
parent83a458acf113a35ad9b50d5a4c7943ea5f5415ea (diff)
downloadrust-275988cb73e5ad9e7628c7eb424be9cdcec57284.tar.gz
rust-275988cb73e5ad9e7628c7eb424be9cdcec57284.zip
Add additional lint doc to known problems section
-rw-r--r--clippy_lints/src/empty_enum.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/empty_enum.rs b/clippy_lints/src/empty_enum.rs
index 585709660a4..557a7c6ba98 100644
--- a/clippy_lints/src/empty_enum.rs
+++ b/clippy_lints/src/empty_enum.rs
@@ -8,6 +8,10 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
 declare_clippy_lint! {
     /// **What it does:** Checks for `enum`s with no variants.
     ///
+    /// As of this writing, the never type is still a
+    /// nightly-only experimental API. Therefore, this lint is only triggered
+    /// if the never type is enabled
+    ///
     /// **Why is this bad?** If you want to introduce a type which
     /// can't be instantiated, you should use `!` (the never type),
     /// or a wrapper around it, because `!` has more extensive