Skip to content

Commit d2dbd0b

Browse files
committed
Update *.stderr files
1 parent 9fddb2a commit d2dbd0b

File tree

223 files changed

+4702
-4702
lines changed

Some content is hidden

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

223 files changed

+4702
-4702
lines changed

tests/ui-toml/toml_blacklist/conf_french_blacklisted_name.stderr

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
error: use of a blacklisted/placeholder name `toto`
22
--> $DIR/conf_french_blacklisted_name.rs:15:9
33
|
4-
15 | fn test(toto: ()) {}
4+
LL | fn test(toto: ()) {}
55
| ^^^^
66
|
77
= note: `-D clippy::blacklisted-name` implied by `-D warnings`
88

99
error: use of a blacklisted/placeholder name `toto`
1010
--> $DIR/conf_french_blacklisted_name.rs:18:9
1111
|
12-
18 | let toto = 42;
12+
LL | let toto = 42;
1313
| ^^^^
1414

1515
error: use of a blacklisted/placeholder name `tata`
1616
--> $DIR/conf_french_blacklisted_name.rs:19:9
1717
|
18-
19 | let tata = 42;
18+
LL | let tata = 42;
1919
| ^^^^
2020

2121
error: use of a blacklisted/placeholder name `titi`
2222
--> $DIR/conf_french_blacklisted_name.rs:20:9
2323
|
24-
20 | let titi = 42;
24+
LL | let titi = 42;
2525
| ^^^^
2626

2727
error: use of a blacklisted/placeholder name `toto`
2828
--> $DIR/conf_french_blacklisted_name.rs:26:10
2929
|
30-
26 | (toto, Some(tata), titi @ Some(_)) => (),
30+
LL | (toto, Some(tata), titi @ Some(_)) => (),
3131
| ^^^^
3232

3333
error: use of a blacklisted/placeholder name `tata`
3434
--> $DIR/conf_french_blacklisted_name.rs:26:21
3535
|
36-
26 | (toto, Some(tata), titi @ Some(_)) => (),
36+
LL | (toto, Some(tata), titi @ Some(_)) => (),
3737
| ^^^^
3838

3939
error: use of a blacklisted/placeholder name `titi`
4040
--> $DIR/conf_french_blacklisted_name.rs:26:28
4141
|
42-
26 | (toto, Some(tata), titi @ Some(_)) => (),
42+
LL | (toto, Some(tata), titi @ Some(_)) => (),
4343
| ^^^^
4444

4545
error: aborting due to 7 previous errors

tests/ui-toml/toml_trivially_copy/test.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
error: this argument is passed by reference, but would be more efficient if passed by value
22
--> $DIR/test.rs:20:11
33
|
4-
20 | fn bad(x: &u16, y: &Foo) {}
4+
LL | fn bad(x: &u16, y: &Foo) {}
55
| ^^^^ help: consider passing by value instead: `u16`
66
|
77
= note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
88

99
error: this argument is passed by reference, but would be more efficient if passed by value
1010
--> $DIR/test.rs:20:20
1111
|
12-
20 | fn bad(x: &u16, y: &Foo) {}
12+
LL | fn bad(x: &u16, y: &Foo) {}
1313
| ^^^^ help: consider passing by value instead: `Foo`
1414

1515
error: aborting due to 2 previous errors

tests/ui/absurd-extreme-comparisons.stderr

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
22
--> $DIR/absurd-extreme-comparisons.rs:23:5
33
|
4-
23 | u <= 0;
4+
LL | u <= 0;
55
| ^^^^^^
66
|
77
= note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
@@ -10,135 +10,135 @@ error: this comparison involving the minimum or maximum element for this type co
1010
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
1111
--> $DIR/absurd-extreme-comparisons.rs:24:5
1212
|
13-
24 | u <= Z;
13+
LL | 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
1919
--> $DIR/absurd-extreme-comparisons.rs:25:5
2020
|
21-
25 | u < Z;
21+
LL | 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
2727
--> $DIR/absurd-extreme-comparisons.rs:26:5
2828
|
29-
26 | Z >= u;
29+
LL | 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
3535
--> $DIR/absurd-extreme-comparisons.rs:27:5
3636
|
37-
27 | Z > u;
37+
LL | 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
4343
--> $DIR/absurd-extreme-comparisons.rs:28:5
4444
|
45-
28 | u > std::u32::MAX;
45+
LL | 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
5151
--> $DIR/absurd-extreme-comparisons.rs:29:5
5252
|
53-
29 | u >= std::u32::MAX;
53+
LL | 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
5959
--> $DIR/absurd-extreme-comparisons.rs:30:5
6060
|
61-
30 | std::u32::MAX < u;
61+
LL | 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
6767
--> $DIR/absurd-extreme-comparisons.rs:31:5
6868
|
69-
31 | std::u32::MAX <= u;
69+
LL | 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
7575
--> $DIR/absurd-extreme-comparisons.rs:32:5
7676
|
77-
32 | 1-1 > u;
77+
LL | 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
8383
--> $DIR/absurd-extreme-comparisons.rs:33:5
8484
|
85-
33 | u >= !0;
85+
LL | 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
9191
--> $DIR/absurd-extreme-comparisons.rs:34:5
9292
|
93-
34 | u <= 12 - 2*6;
93+
LL | 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
9999
--> $DIR/absurd-extreme-comparisons.rs:36:5
100100
|
101-
36 | i < -127 - 1;
101+
LL | 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
107107
--> $DIR/absurd-extreme-comparisons.rs:37:5
108108
|
109-
37 | std::i8::MAX >= i;
109+
LL | 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
115115
--> $DIR/absurd-extreme-comparisons.rs:38:5
116116
|
117-
38 | 3-7 < std::i32::MIN;
117+
LL | 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
123123
--> $DIR/absurd-extreme-comparisons.rs:40:5
124124
|
125-
40 | b >= true;
125+
LL | 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
131131
--> $DIR/absurd-extreme-comparisons.rs:41:5
132132
|
133-
41 | false > b;
133+
LL | 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
139139
--> $DIR/absurd-extreme-comparisons.rs:44:5
140140
|
141-
44 | () < {};
141+
LL | () < {};
142142
| ^^^^^^^
143143
|
144144
= note: #[deny(clippy::unit_cmp)] on by default

tests/ui/approx_const.stderr

+19-19
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
22
--> $DIR/approx_const.rs:13:16
33
|
4-
13 | let my_e = 2.7182;
4+
LL | 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
1010
--> $DIR/approx_const.rs:14:20
1111
|
12-
14 | let almost_e = 2.718;
12+
LL | let almost_e = 2.718;
1313
| ^^^^^
1414

1515
error: approximate value of `f{32, 64}::consts::FRAC_1_PI` found. Consider using it directly
1616
--> $DIR/approx_const.rs:17:24
1717
|
18-
17 | let my_1_frac_pi = 0.3183;
18+
LL | 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
2222
--> $DIR/approx_const.rs:20:28
2323
|
24-
20 | let my_frac_1_sqrt_2 = 0.70710678;
24+
LL | 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
2828
--> $DIR/approx_const.rs:21:32
2929
|
30-
21 | let almost_frac_1_sqrt_2 = 0.70711;
30+
LL | 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
3434
--> $DIR/approx_const.rs:24:24
3535
|
36-
24 | let my_frac_2_pi = 0.63661977;
36+
LL | 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
4040
--> $DIR/approx_const.rs:27:27
4141
|
42-
27 | let my_frac_2_sq_pi = 1.128379;
42+
LL | 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
4646
--> $DIR/approx_const.rs:30:24
4747
|
48-
30 | let my_frac_pi_2 = 1.57079632679;
48+
LL | 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
5252
--> $DIR/approx_const.rs:33:24
5353
|
54-
33 | let my_frac_pi_3 = 1.04719755119;
54+
LL | 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
5858
--> $DIR/approx_const.rs:36:24
5959
|
60-
36 | let my_frac_pi_4 = 0.785398163397;
60+
LL | 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
6464
--> $DIR/approx_const.rs:39:24
6565
|
66-
39 | let my_frac_pi_6 = 0.523598775598;
66+
LL | 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
7070
--> $DIR/approx_const.rs:42:24
7171
|
72-
42 | let my_frac_pi_8 = 0.3926990816987;
72+
LL | 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
7676
--> $DIR/approx_const.rs:45:20
7777
|
78-
45 | let my_ln_10 = 2.302585092994046;
78+
LL | let my_ln_10 = 2.302585092994046;
7979
| ^^^^^^^^^^^^^^^^^
8080

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

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

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

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

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

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

117117
error: aborting due to 19 previous errors

0 commit comments

Comments
 (0)