1 error: manual `Range::contains` implementation
2 --> $DIR/range_contains.rs:13:5
5 | ^^^^^^^^^^^^^^^^ help: use: `(8..12).contains(&x)`
7 = note: `-D clippy::manual-range-contains` implied by `-D warnings`
8 = help: to override `-D warnings` add `#[allow(clippy::manual_range_contains)]`
10 error: manual `Range::contains` implementation
11 --> $DIR/range_contains.rs:14:5
13 LL | x < 42 && x >= 21;
14 | ^^^^^^^^^^^^^^^^^ help: use: `(21..42).contains(&x)`
16 error: manual `Range::contains` implementation
17 --> $DIR/range_contains.rs:15:5
19 LL | 100 > x && 1 <= x;
20 | ^^^^^^^^^^^^^^^^^ help: use: `(1..100).contains(&x)`
22 error: manual `RangeInclusive::contains` implementation
23 --> $DIR/range_contains.rs:18:5
25 LL | x >= 9 && x <= 99;
26 | ^^^^^^^^^^^^^^^^^ help: use: `(9..=99).contains(&x)`
28 error: manual `RangeInclusive::contains` implementation
29 --> $DIR/range_contains.rs:19:5
31 LL | x <= 33 && x >= 1;
32 | ^^^^^^^^^^^^^^^^^ help: use: `(1..=33).contains(&x)`
34 error: manual `RangeInclusive::contains` implementation
35 --> $DIR/range_contains.rs:20:5
37 LL | 999 >= x && 1 <= x;
38 | ^^^^^^^^^^^^^^^^^^ help: use: `(1..=999).contains(&x)`
40 error: manual `!Range::contains` implementation
41 --> $DIR/range_contains.rs:23:5
43 LL | x < 8 || x >= 12;
44 | ^^^^^^^^^^^^^^^^ help: use: `!(8..12).contains(&x)`
46 error: manual `!Range::contains` implementation
47 --> $DIR/range_contains.rs:24:5
49 LL | x >= 42 || x < 21;
50 | ^^^^^^^^^^^^^^^^^ help: use: `!(21..42).contains(&x)`
52 error: manual `!Range::contains` implementation
53 --> $DIR/range_contains.rs:25:5
55 LL | 100 <= x || 1 > x;
56 | ^^^^^^^^^^^^^^^^^ help: use: `!(1..100).contains(&x)`
58 error: manual `!RangeInclusive::contains` implementation
59 --> $DIR/range_contains.rs:28:5
62 | ^^^^^^^^^^^^^^^ help: use: `!(9..=99).contains(&x)`
64 error: manual `!RangeInclusive::contains` implementation
65 --> $DIR/range_contains.rs:29:5
68 | ^^^^^^^^^^^^^^^ help: use: `!(1..=33).contains(&x)`
70 error: manual `!RangeInclusive::contains` implementation
71 --> $DIR/range_contains.rs:30:5
73 LL | 999 < x || 1 > x;
74 | ^^^^^^^^^^^^^^^^ help: use: `!(1..=999).contains(&x)`
76 error: manual `Range::contains` implementation
77 --> $DIR/range_contains.rs:45:5
79 LL | y >= 0. && y < 1.;
80 | ^^^^^^^^^^^^^^^^^ help: use: `(0. ..1.).contains(&y)`
82 error: manual `!RangeInclusive::contains` implementation
83 --> $DIR/range_contains.rs:46:5
85 LL | y < 0. || y > 1.;
86 | ^^^^^^^^^^^^^^^^ help: use: `!(0. ..=1.).contains(&y)`
88 error: manual `RangeInclusive::contains` implementation
89 --> $DIR/range_contains.rs:49:5
91 LL | x >= -10 && x <= 10;
92 | ^^^^^^^^^^^^^^^^^^^ help: use: `(-10..=10).contains(&x)`
94 error: manual `RangeInclusive::contains` implementation
95 --> $DIR/range_contains.rs:51:5
97 LL | y >= -3. && y <= 3.;
98 | ^^^^^^^^^^^^^^^^^^^ help: use: `(-3. ..=3.).contains(&y)`
100 error: manual `RangeInclusive::contains` implementation
101 --> $DIR/range_contains.rs:56:30
103 LL | (x >= 0) && (x <= 10) && (z >= 0) && (z <= 10);
104 | ^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=10).contains(&z)`
106 error: manual `RangeInclusive::contains` implementation
107 --> $DIR/range_contains.rs:56:5
109 LL | (x >= 0) && (x <= 10) && (z >= 0) && (z <= 10);
110 | ^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=10).contains(&x)`
112 error: manual `!Range::contains` implementation
113 --> $DIR/range_contains.rs:57:29
115 LL | (x < 0) || (x >= 10) || (z < 0) || (z >= 10);
116 | ^^^^^^^^^^^^^^^^^^^^ help: use: `!(0..10).contains(&z)`
118 error: manual `!Range::contains` implementation
119 --> $DIR/range_contains.rs:57:5
121 LL | (x < 0) || (x >= 10) || (z < 0) || (z >= 10);
122 | ^^^^^^^^^^^^^^^^^^^^ help: use: `!(0..10).contains(&x)`
124 error: manual `Range::contains` implementation
125 --> $DIR/range_contains.rs:76:5
127 LL | x >= 8 && x < 35;
128 | ^^^^^^^^^^^^^^^^ help: use: `(8..35).contains(&x)`
130 error: aborting due to 21 previous errors