We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a458a commit 275988cCopy full SHA for 275988c
clippy_lints/src/empty_enum.rs
@@ -8,6 +8,10 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
8
declare_clippy_lint! {
9
/// **What it does:** Checks for `enum`s with no variants.
10
///
11
+ /// As of this writing, the never type is still a
12
+ /// nightly-only experimental API. Therefore, this lint is only triggered
13
+ /// if the never type is enabled
14
+ ///
15
/// **Why is this bad?** If you want to introduce a type which
16
/// can't be instantiated, you should use `!` (the never type),
17
/// or a wrapper around it, because `!` has more extensive
0 commit comments