From: Oliver Schneider Date: Mon, 10 Jul 2017 07:50:36 +0000 (+0200) Subject: The lint doesn't improve perf (yet) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=a5fe4bed0e1cba04dbb0c0b359cc3096c74f09ec;p=rust.git The lint doesn't improve perf (yet) --- diff --git a/clippy_lints/src/bit_mask.rs b/clippy_lints/src/bit_mask.rs index 889f74d52e7..f56c0b2aeb3 100644 --- a/clippy_lints/src/bit_mask.rs +++ b/clippy_lints/src/bit_mask.rs @@ -76,7 +76,7 @@ /// /// **Why is this bad?** `x.trailing_zeros() > 4` is much clearer than `x & 15 == 0` /// -/// **Known problems:** None +/// **Known problems:** llvm generates better code for `x & 15 == 0` on x86 /// /// **Example:** /// ```rust