2020-10-15 20:05:51 +00:00
|
|
|
error: manual `Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:15:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x >= 8 && x < 12;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: use: `(8..12).contains(&x)`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-range-contains` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: manual `Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:16:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x < 42 && x >= 21;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use: `(21..42).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:17:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | 100 > x && 1 <= x;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use: `(1..100).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:20:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x >= 9 && x <= 99;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use: `(9..=99).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:21:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x <= 33 && x >= 1;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use: `(1..=33).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:22:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | 999 >= x && 1 <= x;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: use: `(1..=999).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `!Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:25:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x < 8 || x >= 12;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: use: `!(8..12).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `!Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:26:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x >= 42 || x < 21;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use: `!(21..42).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `!Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:27:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | 100 <= x || 1 > x;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use: `!(1..100).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `!RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:30:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x < 9 || x > 99;
|
|
|
|
| ^^^^^^^^^^^^^^^ help: use: `!(9..=99).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `!RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:31:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | x > 33 || x < 1;
|
|
|
|
| ^^^^^^^^^^^^^^^ help: use: `!(1..=33).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `!RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:32:5
|
2020-10-15 20:05:51 +00:00
|
|
|
|
|
|
|
|
LL | 999 < x || 1 > x;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: use: `!(1..=999).contains(&x)`
|
|
|
|
|
2020-11-11 13:36:53 +00:00
|
|
|
error: manual `Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:47:5
|
2020-11-11 13:36:53 +00:00
|
|
|
|
|
|
|
|
LL | y >= 0. && y < 1.;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: use: `(0. ..1.).contains(&y)`
|
|
|
|
|
|
|
|
error: manual `!RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:48:5
|
2020-11-11 13:36:53 +00:00
|
|
|
|
|
|
|
|
LL | y < 0. || y > 1.;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: use: `!(0. ..=1.).contains(&y)`
|
|
|
|
|
2022-04-29 03:54:58 +00:00
|
|
|
error: manual `RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:51:5
|
2022-04-29 03:54:58 +00:00
|
|
|
|
|
|
|
|
LL | x >= -10 && x <= 10;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: use: `(-10..=10).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:53:5
|
2022-04-29 03:54:58 +00:00
|
|
|
|
|
|
|
|
LL | y >= -3. && y <= 3.;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: use: `(-3. ..=3.).contains(&y)`
|
|
|
|
|
2022-05-24 15:50:12 +00:00
|
|
|
error: manual `RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:58:30
|
2022-05-24 15:50:12 +00:00
|
|
|
|
|
|
|
|
LL | (x >= 0) && (x <= 10) && (z >= 0) && (z <= 10);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=10).contains(&z)`
|
|
|
|
|
|
|
|
error: manual `RangeInclusive::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:58:5
|
2022-05-24 15:50:12 +00:00
|
|
|
|
|
|
|
|
LL | (x >= 0) && (x <= 10) && (z >= 0) && (z <= 10);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=10).contains(&x)`
|
|
|
|
|
|
|
|
error: manual `!Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:59:29
|
2022-05-24 15:50:12 +00:00
|
|
|
|
|
|
|
|
LL | (x < 0) || (x >= 10) || (z < 0) || (z >= 10);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: use: `!(0..10).contains(&z)`
|
|
|
|
|
|
|
|
error: manual `!Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:59:5
|
2022-05-24 15:50:12 +00:00
|
|
|
|
|
|
|
|
LL | (x < 0) || (x >= 10) || (z < 0) || (z >= 10);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: use: `!(0..10).contains(&x)`
|
|
|
|
|
2022-10-21 21:35:39 +00:00
|
|
|
error: manual `Range::contains` implementation
|
2023-05-29 19:40:28 +00:00
|
|
|
--> $DIR/range_contains.rs:78:5
|
2022-10-21 21:35:39 +00:00
|
|
|
|
|
|
|
|
LL | x >= 8 && x < 35;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: use: `(8..35).contains(&x)`
|
|
|
|
|
|
|
|
error: aborting due to 21 previous errors
|
2020-10-15 20:05:51 +00:00
|
|
|
|