Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 07e3363

Browse files
committed
Update stderrs
1 parent 5ac08b0 commit 07e3363

File tree

65 files changed

+498
-498
lines changed

Some content is hidden

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

65 files changed

+498
-498
lines changed

tests/ui/absurd-extreme-comparisons.stderr

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,135 +5,135 @@ LL | u <= 0;
55
| ^^^^^^
66
|
77
= note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
8-
= 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
8+
= 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
1111
--> $DIR/absurd-extreme-comparisons.rs:15:5
1212
|
1313
LL | u <= Z;
1414
| ^^^^^^
1515
|
16-
= 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
16+
= 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:16:5
2020
|
2121
LL | u < Z;
2222
| ^^^^^
2323
|
24-
= help: because Z is the minimum value for this type, this comparison is always false
24+
= 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:17:5
2828
|
2929
LL | Z >= u;
3030
| ^^^^^^
3131
|
32-
= 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
32+
= 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:18:5
3636
|
3737
LL | Z > u;
3838
| ^^^^^
3939
|
40-
= help: because Z is the minimum value for this type, this comparison is always false
40+
= 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:19:5
4444
|
4545
LL | u > std::u32::MAX;
4646
| ^^^^^^^^^^^^^^^^^
4747
|
48-
= help: because std::u32::MAX is the maximum value for this type, this comparison is always false
48+
= 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:20:5
5252
|
5353
LL | u >= std::u32::MAX;
5454
| ^^^^^^^^^^^^^^^^^^
5555
|
56-
= 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
56+
= 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:21:5
6060
|
6161
LL | std::u32::MAX < u;
6262
| ^^^^^^^^^^^^^^^^^
6363
|
64-
= help: because std::u32::MAX is the maximum value for this type, this comparison is always false
64+
= 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:22:5
6868
|
6969
LL | std::u32::MAX <= u;
7070
| ^^^^^^^^^^^^^^^^^^
7171
|
72-
= 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
72+
= 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:23:5
7676
|
7777
LL | 1-1 > u;
7878
| ^^^^^^^
7979
|
80-
= help: because 1-1 is the minimum value for this type, this comparison is always false
80+
= 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:24:5
8484
|
8585
LL | u >= !0;
8686
| ^^^^^^^
8787
|
88-
= 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
88+
= 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:25:5
9292
|
9393
LL | u <= 12 - 2*6;
9494
| ^^^^^^^^^^^^^
9595
|
96-
= 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
96+
= 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:27:5
100100
|
101101
LL | i < -127 - 1;
102102
| ^^^^^^^^^^^^
103103
|
104-
= help: because -127 - 1 is the minimum value for this type, this comparison is always false
104+
= 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:28:5
108108
|
109109
LL | std::i8::MAX >= i;
110110
| ^^^^^^^^^^^^^^^^^
111111
|
112-
= help: because std::i8::MAX is the maximum value for this type, this comparison is always true
112+
= 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:29:5
116116
|
117117
LL | 3-7 < std::i32::MIN;
118118
| ^^^^^^^^^^^^^^^^^^^
119119
|
120-
= help: because std::i32::MIN is the minimum value for this type, this comparison is always false
120+
= 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:31:5
124124
|
125125
LL | b >= true;
126126
| ^^^^^^^^^
127127
|
128-
= 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
128+
= 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:32:5
132132
|
133133
LL | false > b;
134134
| ^^^^^^^^^
135135
|
136-
= help: because false is the minimum value for this type, this comparison is always false
136+
= 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:35:5

tests/ui/assign_ops2.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | a += a + 1;
55
| ^^^^^^^^^^
66
|
77
= note: `-D clippy::misrefactored-assign-op` implied by `-D warnings`
8-
help: Did you mean a = a + 1 or a = a + a + 1? Consider replacing it with
8+
help: Did you mean `a = a + 1` or `a = a + a + 1`? Consider replacing it with
99
|
1010
LL | a += 1;
1111
| ^^^^^^
@@ -20,7 +20,7 @@ error: variable appears on both sides of an assignment operation
2020
LL | a += 1 + a;
2121
| ^^^^^^^^^^
2222
|
23-
help: Did you mean a = a + 1 or a = a + 1 + a? Consider replacing it with
23+
help: Did you mean `a = a + 1` or `a = a + 1 + a`? Consider replacing it with
2424
|
2525
LL | a += 1;
2626
| ^^^^^^
@@ -35,7 +35,7 @@ error: variable appears on both sides of an assignment operation
3535
LL | a -= a - 1;
3636
| ^^^^^^^^^^
3737
|
38-
help: Did you mean a = a - 1 or a = a - (a - 1)? Consider replacing it with
38+
help: Did you mean `a = a - 1` or `a = a - (a - 1)`? Consider replacing it with
3939
|
4040
LL | a -= 1;
4141
| ^^^^^^
@@ -50,7 +50,7 @@ error: variable appears on both sides of an assignment operation
5050
LL | a *= a * 99;
5151
| ^^^^^^^^^^^
5252
|
53-
help: Did you mean a = a * 99 or a = a * a * 99? Consider replacing it with
53+
help: Did you mean `a = a * 99` or `a = a * a * 99`? Consider replacing it with
5454
|
5555
LL | a *= 99;
5656
| ^^^^^^^
@@ -65,7 +65,7 @@ error: variable appears on both sides of an assignment operation
6565
LL | a *= 42 * a;
6666
| ^^^^^^^^^^^
6767
|
68-
help: Did you mean a = a * 42 or a = a * 42 * a? Consider replacing it with
68+
help: Did you mean `a = a * 42` or `a = a * 42 * a`? Consider replacing it with
6969
|
7070
LL | a *= 42;
7171
| ^^^^^^^
@@ -80,7 +80,7 @@ error: variable appears on both sides of an assignment operation
8080
LL | a /= a / 2;
8181
| ^^^^^^^^^^
8282
|
83-
help: Did you mean a = a / 2 or a = a / (a / 2)? Consider replacing it with
83+
help: Did you mean `a = a / 2` or `a = a / (a / 2)`? Consider replacing it with
8484
|
8585
LL | a /= 2;
8686
| ^^^^^^
@@ -95,7 +95,7 @@ error: variable appears on both sides of an assignment operation
9595
LL | a %= a % 5;
9696
| ^^^^^^^^^^
9797
|
98-
help: Did you mean a = a % 5 or a = a % (a % 5)? Consider replacing it with
98+
help: Did you mean `a = a % 5` or `a = a % (a % 5)`? Consider replacing it with
9999
|
100100
LL | a %= 5;
101101
| ^^^^^^
@@ -110,7 +110,7 @@ error: variable appears on both sides of an assignment operation
110110
LL | a &= a & 1;
111111
| ^^^^^^^^^^
112112
|
113-
help: Did you mean a = a & 1 or a = a & a & 1? Consider replacing it with
113+
help: Did you mean `a = a & 1` or `a = a & a & 1`? Consider replacing it with
114114
|
115115
LL | a &= 1;
116116
| ^^^^^^
@@ -125,7 +125,7 @@ error: variable appears on both sides of an assignment operation
125125
LL | a *= a * a;
126126
| ^^^^^^^^^^
127127
|
128-
help: Did you mean a = a * a or a = a * a * a? Consider replacing it with
128+
help: Did you mean `a = a * a` or `a = a * a * a`? Consider replacing it with
129129
|
130130
LL | a *= a;
131131
| ^^^^^^

tests/ui/block_in_if_condition.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
1+
error: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
22
--> $DIR/block_in_if_condition.rs:26:8
33
|
44
LL | if {
@@ -30,7 +30,7 @@ LL | if { true } {
3030
6
3131
} ...
3232

33-
error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
33+
error: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
3434
--> $DIR/block_in_if_condition.rs:58:17
3535
|
3636
LL | |x| {
@@ -40,7 +40,7 @@ LL | | x == target
4040
LL | | },
4141
| |_____________^
4242

43-
error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
43+
error: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
4444
--> $DIR/block_in_if_condition.rs:67:13
4545
|
4646
LL | |x| {

tests/ui/cast.stderr

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,103 +36,103 @@ error: casting u64 to f64 causes a loss of precision (u64 is 64 bits wide, but f
3636
LL | x3 as f64;
3737
| ^^^^^^^^^
3838

39-
error: casting f32 to i32 may truncate the value
39+
error: casting `f32` to `i32` may truncate the value
4040
--> $DIR/cast.rs:21:5
4141
|
4242
LL | 1f32 as i32;
4343
| ^^^^^^^^^^^
4444
|
4545
= note: `-D clippy::cast-possible-truncation` implied by `-D warnings`
4646

47-
error: casting f32 to u32 may truncate the value
47+
error: casting `f32` to `u32` may truncate the value
4848
--> $DIR/cast.rs:22:5
4949
|
5050
LL | 1f32 as u32;
5151
| ^^^^^^^^^^^
5252

53-
error: casting f32 to u32 may lose the sign of the value
53+
error: casting `f32` to `u32` may lose the sign of the value
5454
--> $DIR/cast.rs:22:5
5555
|
5656
LL | 1f32 as u32;
5757
| ^^^^^^^^^^^
5858
|
5959
= note: `-D clippy::cast-sign-loss` implied by `-D warnings`
6060

61-
error: casting f64 to f32 may truncate the value
61+
error: casting `f64` to `f32` may truncate the value
6262
--> $DIR/cast.rs:23:5
6363
|
6464
LL | 1f64 as f32;
6565
| ^^^^^^^^^^^
6666

67-
error: casting i32 to i8 may truncate the value
67+
error: casting `i32` to `i8` may truncate the value
6868
--> $DIR/cast.rs:24:5
6969
|
7070
LL | 1i32 as i8;
7171
| ^^^^^^^^^^
7272

73-
error: casting i32 to u8 may truncate the value
73+
error: casting `i32` to `u8` may truncate the value
7474
--> $DIR/cast.rs:25:5
7575
|
7676
LL | 1i32 as u8;
7777
| ^^^^^^^^^^
7878

79-
error: casting f64 to isize may truncate the value
79+
error: casting `f64` to `isize` may truncate the value
8080
--> $DIR/cast.rs:26:5
8181
|
8282
LL | 1f64 as isize;
8383
| ^^^^^^^^^^^^^
8484

85-
error: casting f64 to usize may truncate the value
85+
error: casting `f64` to `usize` may truncate the value
8686
--> $DIR/cast.rs:27:5
8787
|
8888
LL | 1f64 as usize;
8989
| ^^^^^^^^^^^^^
9090

91-
error: casting f64 to usize may lose the sign of the value
91+
error: casting `f64` to `usize` may lose the sign of the value
9292
--> $DIR/cast.rs:27:5
9393
|
9494
LL | 1f64 as usize;
9595
| ^^^^^^^^^^^^^
9696

97-
error: casting u8 to i8 may wrap around the value
97+
error: casting `u8` to `i8` may wrap around the value
9898
--> $DIR/cast.rs:29:5
9999
|
100100
LL | 1u8 as i8;
101101
| ^^^^^^^^^
102102
|
103103
= note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
104104

105-
error: casting u16 to i16 may wrap around the value
105+
error: casting `u16` to `i16` may wrap around the value
106106
--> $DIR/cast.rs:30:5
107107
|
108108
LL | 1u16 as i16;
109109
| ^^^^^^^^^^^
110110

111-
error: casting u32 to i32 may wrap around the value
111+
error: casting `u32` to `i32` may wrap around the value
112112
--> $DIR/cast.rs:31:5
113113
|
114114
LL | 1u32 as i32;
115115
| ^^^^^^^^^^^
116116

117-
error: casting u64 to i64 may wrap around the value
117+
error: casting `u64` to `i64` may wrap around the value
118118
--> $DIR/cast.rs:32:5
119119
|
120120
LL | 1u64 as i64;
121121
| ^^^^^^^^^^^
122122

123-
error: casting usize to isize may wrap around the value
123+
error: casting `usize` to `isize` may wrap around the value
124124
--> $DIR/cast.rs:33:5
125125
|
126126
LL | 1usize as isize;
127127
| ^^^^^^^^^^^^^^^
128128

129-
error: casting i32 to u32 may lose the sign of the value
129+
error: casting `i32` to `u32` may lose the sign of the value
130130
--> $DIR/cast.rs:36:5
131131
|
132132
LL | -1i32 as u32;
133133
| ^^^^^^^^^^^^
134134

135-
error: casting isize to usize may lose the sign of the value
135+
error: casting `isize` to `usize` may lose the sign of the value
136136
--> $DIR/cast.rs:38:5
137137
|
138138
LL | -1isize as usize;

0 commit comments

Comments
 (0)