Skip to content

Commit 9b839cd

Browse files
committed
update line numbers of tests
1 parent 4583d78 commit 9b839cd

12 files changed

+753
-753
lines changed

tests/ui/absurd-extreme-comparisons.stderr

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,144 +1,144 @@
11
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2-
--> $DIR/absurd-extreme-comparisons.rs:20:5
2+
--> $DIR/absurd-extreme-comparisons.rs:17:5
33
|
4-
20 | u <= 0;
4+
17 | u <= 0;
55
| ^^^^^^
66
|
77
= note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
88
= help: because 0 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 0 instead
99

1010
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
11-
--> $DIR/absurd-extreme-comparisons.rs:21:5
11+
--> $DIR/absurd-extreme-comparisons.rs:18:5
1212
|
13-
21 | u <= Z;
13+
18 | u <= Z;
1414
| ^^^^^^
1515
|
1616
= help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == Z instead
1717

1818
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
19-
--> $DIR/absurd-extreme-comparisons.rs:22:5
19+
--> $DIR/absurd-extreme-comparisons.rs:19:5
2020
|
21-
22 | u < Z;
21+
19 | u < Z;
2222
| ^^^^^
2323
|
2424
= help: because Z is the minimum value for this type, this comparison is always false
2525

2626
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
27-
--> $DIR/absurd-extreme-comparisons.rs:23:5
27+
--> $DIR/absurd-extreme-comparisons.rs:20:5
2828
|
29-
23 | Z >= u;
29+
20 | Z >= u;
3030
| ^^^^^^
3131
|
3232
= help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using Z == u instead
3333

3434
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
35-
--> $DIR/absurd-extreme-comparisons.rs:24:5
35+
--> $DIR/absurd-extreme-comparisons.rs:21:5
3636
|
37-
24 | Z > u;
37+
21 | Z > u;
3838
| ^^^^^
3939
|
4040
= help: because Z is the minimum value for this type, this comparison is always false
4141

4242
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
43-
--> $DIR/absurd-extreme-comparisons.rs:25:5
43+
--> $DIR/absurd-extreme-comparisons.rs:22:5
4444
|
45-
25 | u > std::u32::MAX;
45+
22 | u > std::u32::MAX;
4646
| ^^^^^^^^^^^^^^^^^
4747
|
4848
= help: because std::u32::MAX is the maximum value for this type, this comparison is always false
4949

5050
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
51-
--> $DIR/absurd-extreme-comparisons.rs:26:5
51+
--> $DIR/absurd-extreme-comparisons.rs:23:5
5252
|
53-
26 | u >= std::u32::MAX;
53+
23 | u >= std::u32::MAX;
5454
| ^^^^^^^^^^^^^^^^^^
5555
|
5656
= help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == std::u32::MAX instead
5757

5858
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
59-
--> $DIR/absurd-extreme-comparisons.rs:27:5
59+
--> $DIR/absurd-extreme-comparisons.rs:24:5
6060
|
61-
27 | std::u32::MAX < u;
61+
24 | std::u32::MAX < u;
6262
| ^^^^^^^^^^^^^^^^^
6363
|
6464
= help: because std::u32::MAX is the maximum value for this type, this comparison is always false
6565

6666
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
67-
--> $DIR/absurd-extreme-comparisons.rs:28:5
67+
--> $DIR/absurd-extreme-comparisons.rs:25:5
6868
|
69-
28 | std::u32::MAX <= u;
69+
25 | std::u32::MAX <= u;
7070
| ^^^^^^^^^^^^^^^^^^
7171
|
7272
= help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using std::u32::MAX == u instead
7373

7474
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
75-
--> $DIR/absurd-extreme-comparisons.rs:29:5
75+
--> $DIR/absurd-extreme-comparisons.rs:26:5
7676
|
77-
29 | 1-1 > u;
77+
26 | 1-1 > u;
7878
| ^^^^^^^
7979
|
8080
= help: because 1-1 is the minimum value for this type, this comparison is always false
8181

8282
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
83-
--> $DIR/absurd-extreme-comparisons.rs:30:5
83+
--> $DIR/absurd-extreme-comparisons.rs:27:5
8484
|
85-
30 | u >= !0;
85+
27 | u >= !0;
8686
| ^^^^^^^
8787
|
8888
= help: because !0 is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == !0 instead
8989

9090
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
91-
--> $DIR/absurd-extreme-comparisons.rs:31:5
91+
--> $DIR/absurd-extreme-comparisons.rs:28:5
9292
|
93-
31 | u <= 12 - 2*6;
93+
28 | u <= 12 - 2*6;
9494
| ^^^^^^^^^^^^^
9595
|
9696
= help: because 12 - 2*6 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 12 - 2*6 instead
9797

9898
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
99-
--> $DIR/absurd-extreme-comparisons.rs:33:5
99+
--> $DIR/absurd-extreme-comparisons.rs:30:5
100100
|
101-
33 | i < -127 - 1;
101+
30 | i < -127 - 1;
102102
| ^^^^^^^^^^^^
103103
|
104104
= help: because -127 - 1 is the minimum value for this type, this comparison is always false
105105

106106
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
107-
--> $DIR/absurd-extreme-comparisons.rs:34:5
107+
--> $DIR/absurd-extreme-comparisons.rs:31:5
108108
|
109-
34 | std::i8::MAX >= i;
109+
31 | std::i8::MAX >= i;
110110
| ^^^^^^^^^^^^^^^^^
111111
|
112112
= help: because std::i8::MAX is the maximum value for this type, this comparison is always true
113113

114114
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
115-
--> $DIR/absurd-extreme-comparisons.rs:35:5
115+
--> $DIR/absurd-extreme-comparisons.rs:32:5
116116
|
117-
35 | 3-7 < std::i32::MIN;
117+
32 | 3-7 < std::i32::MIN;
118118
| ^^^^^^^^^^^^^^^^^^^
119119
|
120120
= help: because std::i32::MIN is the minimum value for this type, this comparison is always false
121121

122122
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
123-
--> $DIR/absurd-extreme-comparisons.rs:37:5
123+
--> $DIR/absurd-extreme-comparisons.rs:34:5
124124
|
125-
37 | b >= true;
125+
34 | b >= true;
126126
| ^^^^^^^^^
127127
|
128128
= help: because true is the maximum value for this type, the case where the two sides are not equal never occurs, consider using b == true instead
129129

130130
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
131-
--> $DIR/absurd-extreme-comparisons.rs:38:5
131+
--> $DIR/absurd-extreme-comparisons.rs:35:5
132132
|
133-
38 | false > b;
133+
35 | false > b;
134134
| ^^^^^^^^^
135135
|
136136
= help: because false is the minimum value for this type, this comparison is always false
137137

138138
error: <-comparison of unit values detected. This will always be false
139-
--> $DIR/absurd-extreme-comparisons.rs:41:5
139+
--> $DIR/absurd-extreme-comparisons.rs:38:5
140140
|
141-
41 | () < {};
141+
38 | () < {};
142142
| ^^^^^^^
143143
|
144144
= note: #[deny(clippy::unit_cmp)] on by default

tests/ui/arithmetic.stderr

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
11
error: integer arithmetic detected
2-
--> $DIR/arithmetic.rs:18:5
2+
--> $DIR/arithmetic.rs:17:5
33
|
4-
18 | 1 + i;
4+
17 | 1 + i;
55
| ^^^^^
66
|
77
= note: `-D clippy::integer-arithmetic` implied by `-D warnings`
88

99
error: integer arithmetic detected
10-
--> $DIR/arithmetic.rs:19:5
10+
--> $DIR/arithmetic.rs:18:5
1111
|
12-
19 | i * 2;
12+
18 | i * 2;
1313
| ^^^^^
1414

1515
error: integer arithmetic detected
16-
--> $DIR/arithmetic.rs:20:5
16+
--> $DIR/arithmetic.rs:19:5
1717
|
18-
20 | / 1 %
19-
21 | | i / 2; // no error, this is part of the expression in the preceding line
18+
19 | / 1 %
19+
20 | | i / 2; // no error, this is part of the expression in the preceding line
2020
| |_________^
2121

2222
error: integer arithmetic detected
23-
--> $DIR/arithmetic.rs:22:5
23+
--> $DIR/arithmetic.rs:21:5
2424
|
25-
22 | i - 2 + 2 - i;
25+
21 | i - 2 + 2 - i;
2626
| ^^^^^^^^^^^^^
2727

2828
error: integer arithmetic detected
29-
--> $DIR/arithmetic.rs:23:5
29+
--> $DIR/arithmetic.rs:22:5
3030
|
31-
23 | -i;
31+
22 | -i;
3232
| ^^
3333

3434
error: floating-point arithmetic detected
35-
--> $DIR/arithmetic.rs:33:5
35+
--> $DIR/arithmetic.rs:32:5
3636
|
37-
33 | f * 2.0;
37+
32 | f * 2.0;
3838
| ^^^^^^^
3939
|
4040
= note: `-D clippy::float-arithmetic` implied by `-D warnings`
4141

4242
error: floating-point arithmetic detected
43-
--> $DIR/arithmetic.rs:35:5
43+
--> $DIR/arithmetic.rs:34:5
4444
|
45-
35 | 1.0 + f;
45+
34 | 1.0 + f;
4646
| ^^^^^^^
4747

4848
error: floating-point arithmetic detected
49-
--> $DIR/arithmetic.rs:36:5
49+
--> $DIR/arithmetic.rs:35:5
5050
|
51-
36 | f * 2.0;
51+
35 | f * 2.0;
5252
| ^^^^^^^
5353

5454
error: floating-point arithmetic detected
55-
--> $DIR/arithmetic.rs:37:5
55+
--> $DIR/arithmetic.rs:36:5
5656
|
57-
37 | f / 2.0;
57+
36 | f / 2.0;
5858
| ^^^^^^^
5959

6060
error: floating-point arithmetic detected
61-
--> $DIR/arithmetic.rs:38:5
61+
--> $DIR/arithmetic.rs:37:5
6262
|
63-
38 | f - 2.0 * 4.2;
63+
37 | f - 2.0 * 4.2;
6464
| ^^^^^^^^^^^^^
6565

6666
error: floating-point arithmetic detected
67-
--> $DIR/arithmetic.rs:39:5
67+
--> $DIR/arithmetic.rs:38:5
6868
|
69-
39 | -f;
69+
38 | -f;
7070
| ^^
7171

7272
error: aborting due to 11 previous errors

0 commit comments

Comments
 (0)