Add additional lint doc to known problems section

This commit is contained in:
nahuakang
2020-12-28 20:44:21 +01:00
parent 83a458acf1
commit 275988cb73

View File

@@ -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