Skip to content

Commit 275988c

Browse files
committed
Add additional lint doc to known problems section
1 parent 83a458a commit 275988c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_lints/src/empty_enum.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
88
declare_clippy_lint! {
99
/// **What it does:** Checks for `enum`s with no variants.
1010
///
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+
///
1115
/// **Why is this bad?** If you want to introduce a type which
1216
/// can't be instantiated, you should use `!` (the never type),
1317
/// or a wrapper around it, because `!` has more extensive

0 commit comments

Comments
 (0)