We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f24a870 + 0dddf6e commit d255efcCopy full SHA for d255efc
clippy_lints/src/operators/mod.rs
@@ -242,6 +242,13 @@ declare_clippy_lint! {
242
/// # let x = 1;
243
/// if (x | 1 > 3) { }
244
/// ```
245
+ ///
246
+ /// Use instead:
247
248
+ /// ```no_run
249
+ /// # let x = 1;
250
+ /// if (x >= 2) { }
251
+ /// ```
252
#[clippy::version = "pre 1.29.0"]
253
pub INEFFECTIVE_BIT_MASK,
254
correctness,
@@ -265,6 +272,13 @@ declare_clippy_lint! {
265
272
266
273
/// if x & 0b1111 == 0 { }
267
274
275
276
277
278
279
+ /// # let x: i32 = 1;
280
+ /// if x.trailing_zeros() > 4 { }
281
268
282
269
283
pub VERBOSE_BIT_MASK,
270
284
pedantic,
0 commit comments