Skip to content

Commit cb6a654

Browse files
committed
Added known problem to comparison_chain docs
1 parent f9b8a59 commit cb6a654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/comparison_chain.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ declare_clippy_lint! {
1212
/// **Why is this bad?** `if` is not guaranteed to be exhaustive and conditionals can get
1313
/// repetitive
1414
///
15-
/// **Known problems:** None.
15+
/// **Known problems:** The match statement may be slower due to the compiler
16+
/// not inlining the call to cmp. See issue #5354
1617
///
1718
/// **Example:**
1819
/// ```rust,ignore

0 commit comments

Comments
 (0)