]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/range_contains.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / range_contains.stderr
CommitLineData
f20569fa 1error: manual `Range::contains` implementation
487cf647 2 --> $DIR/range_contains.rs:13:5
f20569fa
XL
3 |
4LL | x >= 8 && x < 12;
5 | ^^^^^^^^^^^^^^^^ help: use: `(8..12).contains(&x)`
6 |
7 = note: `-D clippy::manual-range-contains` implied by `-D warnings`
8
9error: manual `Range::contains` implementation
487cf647 10 --> $DIR/range_contains.rs:14:5
f20569fa
XL
11 |
12LL | x < 42 && x >= 21;
13 | ^^^^^^^^^^^^^^^^^ help: use: `(21..42).contains(&x)`
14
15error: manual `Range::contains` implementation
487cf647 16 --> $DIR/range_contains.rs:15:5
f20569fa
XL
17 |
18LL | 100 > x && 1 <= x;
19 | ^^^^^^^^^^^^^^^^^ help: use: `(1..100).contains(&x)`
20
21error: manual `RangeInclusive::contains` implementation
487cf647 22 --> $DIR/range_contains.rs:18:5
f20569fa
XL
23 |
24LL | x >= 9 && x <= 99;
25 | ^^^^^^^^^^^^^^^^^ help: use: `(9..=99).contains(&x)`
26
27error: manual `RangeInclusive::contains` implementation
487cf647 28 --> $DIR/range_contains.rs:19:5
f20569fa
XL
29 |
30LL | x <= 33 && x >= 1;
31 | ^^^^^^^^^^^^^^^^^ help: use: `(1..=33).contains(&x)`
32
33error: manual `RangeInclusive::contains` implementation
487cf647 34 --> $DIR/range_contains.rs:20:5
f20569fa
XL
35 |
36LL | 999 >= x && 1 <= x;
37 | ^^^^^^^^^^^^^^^^^^ help: use: `(1..=999).contains(&x)`
38
39error: manual `!Range::contains` implementation
487cf647 40 --> $DIR/range_contains.rs:23:5
f20569fa
XL
41 |
42LL | x < 8 || x >= 12;
43 | ^^^^^^^^^^^^^^^^ help: use: `!(8..12).contains(&x)`
44
45error: manual `!Range::contains` implementation
487cf647 46 --> $DIR/range_contains.rs:24:5
f20569fa
XL
47 |
48LL | x >= 42 || x < 21;
49 | ^^^^^^^^^^^^^^^^^ help: use: `!(21..42).contains(&x)`
50
51error: manual `!Range::contains` implementation
487cf647 52 --> $DIR/range_contains.rs:25:5
f20569fa
XL
53 |
54LL | 100 <= x || 1 > x;
55 | ^^^^^^^^^^^^^^^^^ help: use: `!(1..100).contains(&x)`
56
57error: manual `!RangeInclusive::contains` implementation
487cf647 58 --> $DIR/range_contains.rs:28:5
f20569fa
XL
59 |
60LL | x < 9 || x > 99;
61 | ^^^^^^^^^^^^^^^ help: use: `!(9..=99).contains(&x)`
62
63error: manual `!RangeInclusive::contains` implementation
487cf647 64 --> $DIR/range_contains.rs:29:5
f20569fa
XL
65 |
66LL | x > 33 || x < 1;
67 | ^^^^^^^^^^^^^^^ help: use: `!(1..=33).contains(&x)`
68
69error: manual `!RangeInclusive::contains` implementation
487cf647 70 --> $DIR/range_contains.rs:30:5
f20569fa
XL
71 |
72LL | 999 < x || 1 > x;
73 | ^^^^^^^^^^^^^^^^ help: use: `!(1..=999).contains(&x)`
74
75error: manual `Range::contains` implementation
487cf647 76 --> $DIR/range_contains.rs:45:5
f20569fa
XL
77 |
78LL | y >= 0. && y < 1.;
79 | ^^^^^^^^^^^^^^^^^ help: use: `(0. ..1.).contains(&y)`
80
81error: manual `!RangeInclusive::contains` implementation
487cf647 82 --> $DIR/range_contains.rs:46:5
f20569fa
XL
83 |
84LL | y < 0. || y > 1.;
85 | ^^^^^^^^^^^^^^^^ help: use: `!(0. ..=1.).contains(&y)`
86
923072b8 87error: manual `RangeInclusive::contains` implementation
487cf647 88 --> $DIR/range_contains.rs:49:5
923072b8
FG
89 |
90LL | x >= -10 && x <= 10;
91 | ^^^^^^^^^^^^^^^^^^^ help: use: `(-10..=10).contains(&x)`
92
93error: manual `RangeInclusive::contains` implementation
487cf647 94 --> $DIR/range_contains.rs:51:5
923072b8
FG
95 |
96LL | y >= -3. && y <= 3.;
97 | ^^^^^^^^^^^^^^^^^^^ help: use: `(-3. ..=3.).contains(&y)`
98
99error: manual `RangeInclusive::contains` implementation
487cf647 100 --> $DIR/range_contains.rs:56:30
923072b8
FG
101 |
102LL | (x >= 0) && (x <= 10) && (z >= 0) && (z <= 10);
103 | ^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=10).contains(&z)`
104
105error: manual `RangeInclusive::contains` implementation
487cf647 106 --> $DIR/range_contains.rs:56:5
923072b8
FG
107 |
108LL | (x >= 0) && (x <= 10) && (z >= 0) && (z <= 10);
109 | ^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=10).contains(&x)`
110
111error: manual `!Range::contains` implementation
487cf647 112 --> $DIR/range_contains.rs:57:29
923072b8
FG
113 |
114LL | (x < 0) || (x >= 10) || (z < 0) || (z >= 10);
115 | ^^^^^^^^^^^^^^^^^^^^ help: use: `!(0..10).contains(&z)`
116
117error: manual `!Range::contains` implementation
487cf647 118 --> $DIR/range_contains.rs:57:5
923072b8
FG
119 |
120LL | (x < 0) || (x >= 10) || (z < 0) || (z >= 10);
121 | ^^^^^^^^^^^^^^^^^^^^ help: use: `!(0..10).contains(&x)`
122
2b03887a 123error: manual `Range::contains` implementation
487cf647 124 --> $DIR/range_contains.rs:76:5
2b03887a
FG
125 |
126LL | x >= 8 && x < 35;
127 | ^^^^^^^^^^^^^^^^ help: use: `(8..35).contains(&x)`
128
129error: aborting due to 21 previous errors
f20569fa 130