Skip to content

Commit e42ba48

Browse files
committed
Auto merge of #6390 - pro-grammer1:master, r=ebroto
Added known problem to comparison_chain docs changelog: Added documentation to comparison_chain that explains a possible performance penalty, according to issue #5354 This is my first PR, I hope everything has been done correctly. Fixes #5354
2 parents d75bc86 + cb6a654 commit e42ba48

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)