fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: &-masking with zero 2 --> $DIR/bit_masks.rs:14:5 3 | 4LL | x & 0 == 0; 5 | ^^^^^^^^^^ 6 | 7 = note: `-D clippy::bad-bit-mask` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::bad_bit_mask)]` 9 10error: this operation will always return zero. This is likely not the intended outcome 11 --> $DIR/bit_masks.rs:14:5 12 | 13LL | x & 0 == 0; 14 | ^^^^^ 15 | 16 = note: `#[deny(clippy::erasing_op)]` on by default 17 18error: incompatible bit mask: `_ & 2` can never be equal to `1` 19 --> $DIR/bit_masks.rs:21:5 20 | 21LL | x & 2 == 1; 22 | ^^^^^^^^^^ 23 24error: incompatible bit mask: `_ | 3` can never be equal to `2` 25 --> $DIR/bit_masks.rs:26:5 26 | 27LL | x | 3 == 2; 28 | ^^^^^^^^^^ 29 30error: incompatible bit mask: `_ & 1` will never be higher than `1` 31 --> $DIR/bit_masks.rs:29:5 32 | 33LL | x & 1 > 1; 34 | ^^^^^^^^^ 35 36error: incompatible bit mask: `_ | 2` will always be higher than `1` 37 --> $DIR/bit_masks.rs:34:5 38 | 39LL | x | 2 > 1; 40 | ^^^^^^^^^ 41 42error: incompatible bit mask: `_ & 7` can never be equal to `8` 43 --> $DIR/bit_masks.rs:42:5 44 | 45LL | x & THREE_BITS == 8; 46 | ^^^^^^^^^^^^^^^^^^^ 47 48error: incompatible bit mask: `_ | 7` will never be lower than `7` 49 --> $DIR/bit_masks.rs:44:5 50 | 51LL | x | EVEN_MORE_REDIRECTION < 7; 52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 53 54error: &-masking with zero 55 --> $DIR/bit_masks.rs:47:5 56 | 57LL | 0 & x == 0; 58 | ^^^^^^^^^^ 59 60error: this operation will always return zero. This is likely not the intended outcome 61 --> $DIR/bit_masks.rs:47:5 62 | 63LL | 0 & x == 0; 64 | ^^^^^ 65 66error: incompatible bit mask: `_ | 2` will always be higher than `1` 67 --> $DIR/bit_masks.rs:53:5 68 | 69LL | 1 < 2 | x; 70 | ^^^^^^^^^ 71 72error: incompatible bit mask: `_ | 3` can never be equal to `2` 73 --> $DIR/bit_masks.rs:55:5 74 | 75LL | 2 == 3 | x; 76 | ^^^^^^^^^^ 77 78error: incompatible bit mask: `_ & 2` can never be equal to `1` 79 --> $DIR/bit_masks.rs:57:5 80 | 81LL | 1 == x & 2; 82 | ^^^^^^^^^^ 83 84error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly 85 --> $DIR/bit_masks.rs:69:5 86 | 87LL | x | 1 > 3; 88 | ^^^^^^^^^ 89 | 90 = note: `-D clippy::ineffective-bit-mask` implied by `-D warnings` 91 = help: to override `-D warnings` add `#[allow(clippy::ineffective_bit_mask)]` 92 93error: ineffective bit mask: `x | 1` compared to `4`, is the same as x compared directly 94 --> $DIR/bit_masks.rs:72:5 95 | 96LL | x | 1 < 4; 97 | ^^^^^^^^^ 98 99error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly 100 --> $DIR/bit_masks.rs:74:5 101 | 102LL | x | 1 <= 3; 103 | ^^^^^^^^^^ 104 105error: ineffective bit mask: `x | 1` compared to `8`, is the same as x compared directly 106 --> $DIR/bit_masks.rs:76:5 107 | 108LL | x | 1 >= 8; 109 | ^^^^^^^^^^ 110 111error: aborting due to 17 previous errors 112