Skip to content

Commit 5501d43

Browse files
committed
less line changes stderr files
1 parent ac6faee commit 5501d43

File tree

112 files changed

+2805
-2805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2805
-2805
lines changed

tests/ui/absurd-extreme-comparisons.stderr

+36-36
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:12:5
2+
--> $DIR/absurd-extreme-comparisons.rs:10:5
33
|
4-
12 | u <= 0;
4+
10 | 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:13:5
11+
--> $DIR/absurd-extreme-comparisons.rs:11:5
1212
|
13-
13 | u <= Z;
13+
11 | 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:14:5
19+
--> $DIR/absurd-extreme-comparisons.rs:12:5
2020
|
21-
14 | u < Z;
21+
12 | 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:15:5
27+
--> $DIR/absurd-extreme-comparisons.rs:13:5
2828
|
29-
15 | Z >= u;
29+
13 | 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:16:5
35+
--> $DIR/absurd-extreme-comparisons.rs:14:5
3636
|
37-
16 | Z > u;
37+
14 | 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:17:5
43+
--> $DIR/absurd-extreme-comparisons.rs:15:5
4444
|
45-
17 | u > std::u32::MAX;
45+
15 | 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:18:5
51+
--> $DIR/absurd-extreme-comparisons.rs:16:5
5252
|
53-
18 | u >= std::u32::MAX;
53+
16 | 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:19:5
59+
--> $DIR/absurd-extreme-comparisons.rs:17:5
6060
|
61-
19 | std::u32::MAX < u;
61+
17 | 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:20:5
67+
--> $DIR/absurd-extreme-comparisons.rs:18:5
6868
|
69-
20 | std::u32::MAX <= u;
69+
18 | 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:21:5
75+
--> $DIR/absurd-extreme-comparisons.rs:19:5
7676
|
77-
21 | 1-1 > u;
77+
19 | 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:22:5
83+
--> $DIR/absurd-extreme-comparisons.rs:20:5
8484
|
85-
22 | u >= !0;
85+
20 | 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:23:5
91+
--> $DIR/absurd-extreme-comparisons.rs:21:5
9292
|
93-
23 | u <= 12 - 2*6;
93+
21 | 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:25:5
99+
--> $DIR/absurd-extreme-comparisons.rs:23:5
100100
|
101-
25 | i < -127 - 1;
101+
23 | 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:26:5
107+
--> $DIR/absurd-extreme-comparisons.rs:24:5
108108
|
109-
26 | std::i8::MAX >= i;
109+
24 | 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:27:5
115+
--> $DIR/absurd-extreme-comparisons.rs:25:5
116116
|
117-
27 | 3-7 < std::i32::MIN;
117+
25 | 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:29:5
123+
--> $DIR/absurd-extreme-comparisons.rs:27:5
124124
|
125-
29 | b >= true;
125+
27 | 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:30:5
131+
--> $DIR/absurd-extreme-comparisons.rs:28:5
132132
|
133-
30 | false > b;
133+
28 | 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:33:5
139+
--> $DIR/absurd-extreme-comparisons.rs:31:5
140140
|
141-
33 | () < {};
141+
31 | () < {};
142142
| ^^^^^^^
143143
|
144144
= note: #[deny(clippy::unit_cmp)] on by default

tests/ui/approx_const.stderr

+40-40
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,117 @@
11
error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly
2-
--> $DIR/approx_const.rs:9:16
2+
--> $DIR/approx_const.rs:7:16
33
|
4-
9 | let my_e = 2.7182;
4+
7 | let my_e = 2.7182;
55
| ^^^^^^
66
|
77
= note: `-D clippy::approx-constant` implied by `-D warnings`
88

99
error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly
10-
--> $DIR/approx_const.rs:10:20
11-
|
12-
10 | let almost_e = 2.718;
13-
| ^^^^^
10+
--> $DIR/approx_const.rs:8:20
11+
|
12+
8 | let almost_e = 2.718;
13+
| ^^^^^
1414

1515
error: approximate value of `f{32, 64}::consts::FRAC_1_PI` found. Consider using it directly
16-
--> $DIR/approx_const.rs:13:24
16+
--> $DIR/approx_const.rs:11:24
1717
|
18-
13 | let my_1_frac_pi = 0.3183;
18+
11 | let my_1_frac_pi = 0.3183;
1919
| ^^^^^^
2020

2121
error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly
22-
--> $DIR/approx_const.rs:16:28
22+
--> $DIR/approx_const.rs:14:28
2323
|
24-
16 | let my_frac_1_sqrt_2 = 0.70710678;
24+
14 | let my_frac_1_sqrt_2 = 0.70710678;
2525
| ^^^^^^^^^^
2626

2727
error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly
28-
--> $DIR/approx_const.rs:17:32
28+
--> $DIR/approx_const.rs:15:32
2929
|
30-
17 | let almost_frac_1_sqrt_2 = 0.70711;
30+
15 | let almost_frac_1_sqrt_2 = 0.70711;
3131
| ^^^^^^^
3232

3333
error: approximate value of `f{32, 64}::consts::FRAC_2_PI` found. Consider using it directly
34-
--> $DIR/approx_const.rs:20:24
34+
--> $DIR/approx_const.rs:18:24
3535
|
36-
20 | let my_frac_2_pi = 0.63661977;
36+
18 | let my_frac_2_pi = 0.63661977;
3737
| ^^^^^^^^^^
3838

3939
error: approximate value of `f{32, 64}::consts::FRAC_2_SQRT_PI` found. Consider using it directly
40-
--> $DIR/approx_const.rs:23:27
40+
--> $DIR/approx_const.rs:21:27
4141
|
42-
23 | let my_frac_2_sq_pi = 1.128379;
42+
21 | let my_frac_2_sq_pi = 1.128379;
4343
| ^^^^^^^^
4444

4545
error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly
46-
--> $DIR/approx_const.rs:26:24
46+
--> $DIR/approx_const.rs:24:24
4747
|
48-
26 | let my_frac_pi_2 = 1.57079632679;
48+
24 | let my_frac_pi_2 = 1.57079632679;
4949
| ^^^^^^^^^^^^^
5050

5151
error: approximate value of `f{32, 64}::consts::FRAC_PI_3` found. Consider using it directly
52-
--> $DIR/approx_const.rs:29:24
52+
--> $DIR/approx_const.rs:27:24
5353
|
54-
29 | let my_frac_pi_3 = 1.04719755119;
54+
27 | let my_frac_pi_3 = 1.04719755119;
5555
| ^^^^^^^^^^^^^
5656

5757
error: approximate value of `f{32, 64}::consts::FRAC_PI_4` found. Consider using it directly
58-
--> $DIR/approx_const.rs:32:24
58+
--> $DIR/approx_const.rs:30:24
5959
|
60-
32 | let my_frac_pi_4 = 0.785398163397;
60+
30 | let my_frac_pi_4 = 0.785398163397;
6161
| ^^^^^^^^^^^^^^
6262

6363
error: approximate value of `f{32, 64}::consts::FRAC_PI_6` found. Consider using it directly
64-
--> $DIR/approx_const.rs:35:24
64+
--> $DIR/approx_const.rs:33:24
6565
|
66-
35 | let my_frac_pi_6 = 0.523598775598;
66+
33 | let my_frac_pi_6 = 0.523598775598;
6767
| ^^^^^^^^^^^^^^
6868

6969
error: approximate value of `f{32, 64}::consts::FRAC_PI_8` found. Consider using it directly
70-
--> $DIR/approx_const.rs:38:24
70+
--> $DIR/approx_const.rs:36:24
7171
|
72-
38 | let my_frac_pi_8 = 0.3926990816987;
72+
36 | let my_frac_pi_8 = 0.3926990816987;
7373
| ^^^^^^^^^^^^^^^
7474

7575
error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly
76-
--> $DIR/approx_const.rs:41:20
76+
--> $DIR/approx_const.rs:39:20
7777
|
78-
41 | let my_ln_10 = 2.302585092994046;
78+
39 | let my_ln_10 = 2.302585092994046;
7979
| ^^^^^^^^^^^^^^^^^
8080

8181
error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly
82-
--> $DIR/approx_const.rs:44:19
82+
--> $DIR/approx_const.rs:42:19
8383
|
84-
44 | let my_ln_2 = 0.6931471805599453;
84+
42 | let my_ln_2 = 0.6931471805599453;
8585
| ^^^^^^^^^^^^^^^^^^
8686

8787
error: approximate value of `f{32, 64}::consts::LOG10_E` found. Consider using it directly
88-
--> $DIR/approx_const.rs:47:22
88+
--> $DIR/approx_const.rs:45:22
8989
|
90-
47 | let my_log10_e = 0.4342944819032518;
90+
45 | let my_log10_e = 0.4342944819032518;
9191
| ^^^^^^^^^^^^^^^^^^
9292

9393
error: approximate value of `f{32, 64}::consts::LOG2_E` found. Consider using it directly
94-
--> $DIR/approx_const.rs:50:21
94+
--> $DIR/approx_const.rs:48:21
9595
|
96-
50 | let my_log2_e = 1.4426950408889634;
96+
48 | let my_log2_e = 1.4426950408889634;
9797
| ^^^^^^^^^^^^^^^^^^
9898

9999
error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly
100-
--> $DIR/approx_const.rs:53:17
100+
--> $DIR/approx_const.rs:51:17
101101
|
102-
53 | let my_pi = 3.1415;
102+
51 | let my_pi = 3.1415;
103103
| ^^^^^^
104104

105105
error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly
106-
--> $DIR/approx_const.rs:54:21
106+
--> $DIR/approx_const.rs:52:21
107107
|
108-
54 | let almost_pi = 3.14;
108+
52 | let almost_pi = 3.14;
109109
| ^^^^
110110

111111
error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly
112-
--> $DIR/approx_const.rs:57:18
112+
--> $DIR/approx_const.rs:55:18
113113
|
114-
57 | let my_sq2 = 1.4142;
114+
55 | let my_sq2 = 1.4142;
115115
| ^^^^^^
116116

117117
error: aborting due to 19 previous errors

0 commit comments

Comments
 (0)