Skip to content

Commit a124642

Browse files
committed
Updating *.stderr files
1 parent ffa64de commit a124642

File tree

192 files changed

+2311
-2246
lines changed

Some content is hidden

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

192 files changed

+2311
-2246
lines changed

tests/ui/absurd-extreme-comparisons.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: this comparison involving the minimum or maximum element for this type co
44
10 | u <= 0;
55
| ^^^^^^
66
|
7-
= note: `-D absurd-extreme-comparisons` implied by `-D warnings`
7+
= 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
@@ -141,7 +141,7 @@ error: <-comparison of unit values detected. This will always be false
141141
31 | () < {};
142142
| ^^^^^^^
143143
|
144-
= note: #[deny(unit_cmp)] on by default
144+
= note: #[deny(clippy::unit_cmp)] on by default
145145

146146
error: aborting due to 18 previous errors
147147

tests/ui/approx_const.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: approximate value of `f{32, 64}::consts::E` found. Consider using it dire
44
7 | let my_e = 2.7182;
55
| ^^^^^^
66
|
7-
= note: `-D approx-constant` implied by `-D warnings`
7+
= 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:8:20

tests/ui/arithmetic.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: integer arithmetic detected
44
8 | 1 + i;
55
| ^^^^^
66
|
7-
= note: `-D integer-arithmetic` implied by `-D warnings`
7+
= note: `-D clippy::integer-arithmetic` implied by `-D warnings`
88

99
error: integer arithmetic detected
1010
--> $DIR/arithmetic.rs:9:5
@@ -37,7 +37,7 @@ error: floating-point arithmetic detected
3737
23 | f * 2.0;
3838
| ^^^^^^^
3939
|
40-
= note: `-D float-arithmetic` implied by `-D warnings`
40+
= note: `-D clippy::float-arithmetic` implied by `-D warnings`
4141

4242
error: floating-point arithmetic detected
4343
--> $DIR/arithmetic.rs:25:5

tests/ui/assign_ops.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: assign operation detected
44
8 | i += 2;
55
| ^^^^^^ help: replace it with: `i = i + 2`
66
|
7-
= note: `-D assign-ops` implied by `-D warnings`
7+
= note: `-D clippy::assign-ops` implied by `-D warnings`
88

99
error: assign operation detected
1010
--> $DIR/assign_ops.rs:9:5
@@ -84,7 +84,7 @@ error: manual implementation of an assign operation
8484
27 | a = a + 1;
8585
| ^^^^^^^^^ help: replace it with: `a += 1`
8686
|
87-
= note: `-D assign-op-pattern` implied by `-D warnings`
87+
= note: `-D clippy::assign-op-pattern` implied by `-D warnings`
8888

8989
error: manual implementation of an assign operation
9090
--> $DIR/assign_ops.rs:28:5

tests/ui/assign_ops2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: variable appears on both sides of an assignment operation
44
8 | a += a + 1;
55
| ^^^^^^^^^^
66
|
7-
= note: `-D misrefactored-assign-op` implied by `-D warnings`
7+
= note: `-D clippy::misrefactored-assign-op` implied by `-D warnings`
88
help: Did you mean a = a + 1 or a = a + a + 1? Consider replacing it with
99
|
1010
8 | a += 1;

tests/ui/attrs.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usuall
44
6 | #[inline(always)]
55
| ^^^^^^^^^^^^^^^^^
66
|
7-
= note: `-D inline-always` implied by `-D warnings`
7+
= note: `-D clippy::inline-always` implied by `-D warnings`
88

99
error: the since field must contain a semver-compliant version
1010
--> $DIR/attrs.rs:27:14
1111
|
1212
27 | #[deprecated(since = "forever")]
1313
| ^^^^^^^^^^^^^^^^^
1414
|
15-
= note: `-D deprecated-semver` implied by `-D warnings`
15+
= note: `-D clippy::deprecated-semver` implied by `-D warnings`
1616

1717
error: the since field must contain a semver-compliant version
1818
--> $DIR/attrs.rs:30:14

tests/ui/author/matches.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: returning the result of a let binding from a block. Consider returning th
44
9 | x
55
| ^
66
|
7-
= note: `-D let-and-return` implied by `-D warnings`
7+
= note: `-D clippy::let-and-return` implied by `-D warnings`
88
note: this expression can be directly returned
99
--> $DIR/matches.rs:8:21
1010
|

tests/ui/bit_masks.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ error: &-masking with zero
44
12 | x & 0 == 0;
55
| ^^^^^^^^^^
66
|
7-
= note: `-D bad-bit-mask` implied by `-D warnings`
7+
= note: `-D clippy::bad-bit-mask` implied by `-D warnings`
88

99
error: this operation will always return zero. This is likely not the intended outcome
1010
--> $DIR/bit_masks.rs:12:5
1111
|
1212
12 | x & 0 == 0;
1313
| ^^^^^
1414
|
15-
= note: #[deny(erasing_op)] on by default
15+
= note: #[deny(clippy::erasing_op)] on by default
1616

1717
error: incompatible bit mask: `_ & 2` can never be equal to `1`
1818
--> $DIR/bit_masks.rs:15:5
@@ -86,7 +86,7 @@ error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared
8686
52 | x | 1 > 3;
8787
| ^^^^^^^^^
8888
|
89-
= note: `-D ineffective-bit-mask` implied by `-D warnings`
89+
= note: `-D clippy::ineffective-bit-mask` implied by `-D warnings`
9090

9191
error: ineffective bit mask: `x | 1` compared to `4`, is the same as x compared directly
9292
--> $DIR/bit_masks.rs:53:5

tests/ui/blacklisted_name.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: use of a blacklisted/placeholder name `foo`
44
7 | fn test(foo: ()) {}
55
| ^^^
66
|
7-
= note: `-D blacklisted-name` implied by `-D warnings`
7+
= note: `-D clippy::blacklisted-name` implied by `-D warnings`
88

99
error: use of a blacklisted/placeholder name `foo`
1010
--> $DIR/blacklisted_name.rs:10:9

tests/ui/block_in_if_condition.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error: in an 'if' condition, avoid complex blocks or closures with blocks; inste
88
33 | | } {
99
| |_____^
1010
|
11-
= note: `-D block-in-if-condition-stmt` implied by `-D warnings`
11+
= note: `-D clippy::block-in-if-condition-stmt` implied by `-D warnings`
1212
= help: try
1313
let res = {
1414
let x = 3;
@@ -24,7 +24,7 @@ error: omit braces around single expression condition
2424
41 | if { true } {
2525
| ^^^^^^^^
2626
|
27-
= note: `-D block-in-if-condition-expr` implied by `-D warnings`
27+
= note: `-D clippy::block-in-if-condition-expr` implied by `-D warnings`
2828
= help: try
2929
if true {
3030
6
@@ -48,7 +48,7 @@ error: this boolean expression can be simplified
4848
67 | if true && x == 3 {
4949
| ^^^^^^^^^^^^^^ help: try: `x == 3`
5050
|
51-
= note: `-D nonminimal-bool` implied by `-D warnings`
51+
= note: `-D clippy::nonminimal-bool` implied by `-D warnings`
5252

5353
error: aborting due to 5 previous errors
5454

tests/ui/bool_comparison.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: equality checks against true are unnecessary
44
7 | if x == true { "yes" } else { "no" };
55
| ^^^^^^^^^ help: try simplifying it as shown: `x`
66
|
7-
= note: `-D bool-comparison` implied by `-D warnings`
7+
= note: `-D clippy::bool-comparison` implied by `-D warnings`
88

99
error: equality checks against false can be replaced by a negation
1010
--> $DIR/bool_comparison.rs:8:8

tests/ui/booleans.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: this boolean expression contains a logic bug
44
12 | let _ = a && b || a;
55
| ^^^^^^^^^^^ help: it would look like the following: `a`
66
|
7-
= note: `-D logic-bug` implied by `-D warnings`
7+
= note: `-D clippy::logic-bug` implied by `-D warnings`
88
help: this expression can be optimized out by applying boolean operations to the outer expression
99
--> $DIR/booleans.rs:12:18
1010
|
@@ -17,7 +17,7 @@ error: this boolean expression can be simplified
1717
14 | let _ = !true;
1818
| ^^^^^ help: try: `false`
1919
|
20-
= note: `-D nonminimal-bool` implied by `-D warnings`
20+
= note: `-D clippy::nonminimal-bool` implied by `-D warnings`
2121

2222
error: this boolean expression can be simplified
2323
--> $DIR/booleans.rs:15:13

tests/ui/borrow_box.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
77
note: lint level defined here
88
--> $DIR/borrow_box.rs:4:9
99
|
10-
4 | #![deny(borrowed_box)]
11-
| ^^^^^^^^^^^^
10+
4 | #![deny(clippy::borrowed_box)]
11+
| ^^^^^^^^^^^^^^^^^^^^
1212

1313
error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
1414
--> $DIR/borrow_box.rs:14:14

tests/ui/box_vec.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: you seem to be trying to use `Box<Vec<T>>`. Consider using just `Vec<T>`
44
17 | pub fn test(foo: Box<Vec<bool>>) {
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: `-D box-vec` implied by `-D warnings`
7+
= note: `-D clippy::box-vec` implied by `-D warnings`
88
= help: `Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation.
99

1010
error: aborting due to previous error

tests/ui/builtin-type-shadow.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: This generic shadows the built-in type `u32`
44
5 | fn foo<u32>(a: u32) -> u32 {
55
| ^^^
66
|
7-
= note: `-D builtin-type-shadow` implied by `-D warnings`
7+
= note: `-D clippy::builtin-type-shadow` implied by `-D warnings`
88

99
error[E0308]: mismatched types
1010
--> $DIR/builtin-type-shadow.rs:6:5

tests/ui/bytecount.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ error: You appear to be counting bytes the naive way
77
note: lint level defined here
88
--> $DIR/bytecount.rs:4:8
99
|
10-
4 | #[deny(naive_bytecount)]
11-
| ^^^^^^^^^^^^^^^
10+
4 | #[deny(clippy::naive_bytecount)]
11+
| ^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: You appear to be counting bytes the naive way
1414
--> $DIR/bytecount.rs:10:13

tests/ui/cast.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f
44
8 | 1i32 as f32;
55
| ^^^^^^^^^^^
66
|
7-
= note: `-D cast-precision-loss` implied by `-D warnings`
7+
= note: `-D clippy::cast-precision-loss` implied by `-D warnings`
88

99
error: casting i64 to f32 causes a loss of precision (i64 is 64 bits wide, but f32's mantissa is only 23 bits wide)
1010
--> $DIR/cast.rs:9:5
@@ -42,7 +42,7 @@ error: casting f32 to i32 may truncate the value
4242
15 | 1f32 as i32;
4343
| ^^^^^^^^^^^
4444
|
45-
= note: `-D cast-possible-truncation` implied by `-D warnings`
45+
= note: `-D clippy::cast-possible-truncation` implied by `-D warnings`
4646

4747
error: casting f32 to u32 may truncate the value
4848
--> $DIR/cast.rs:16:5
@@ -56,7 +56,7 @@ error: casting f32 to u32 may lose the sign of the value
5656
16 | 1f32 as u32;
5757
| ^^^^^^^^^^^
5858
|
59-
= note: `-D cast-sign-loss` implied by `-D warnings`
59+
= note: `-D clippy::cast-sign-loss` implied by `-D warnings`
6060

6161
error: casting f64 to f32 may truncate the value
6262
--> $DIR/cast.rs:17:5
@@ -106,7 +106,7 @@ error: casting u8 to i8 may wrap around the value
106106
23 | 1u8 as i8;
107107
| ^^^^^^^^^
108108
|
109-
= note: `-D cast-possible-wrap` implied by `-D warnings`
109+
= note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
110110

111111
error: casting u16 to i16 may wrap around the value
112112
--> $DIR/cast.rs:24:5
@@ -138,7 +138,7 @@ error: casting f32 to f64 may become silently lossy if types change
138138
29 | 1.0f32 as f64;
139139
| ^^^^^^^^^^^^^ help: try: `f64::from(1.0f32)`
140140
|
141-
= note: `-D cast-lossless` implied by `-D warnings`
141+
= note: `-D clippy::cast-lossless` implied by `-D warnings`
142142

143143
error: casting u8 to u16 may become silently lossy if types change
144144
--> $DIR/cast.rs:31:5
@@ -164,7 +164,7 @@ error: casting to the same type is unnecessary (`i32` -> `i32`)
164164
37 | 1i32 as i32;
165165
| ^^^^^^^^^^^
166166
|
167-
= note: `-D unnecessary-cast` implied by `-D warnings`
167+
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
168168

169169
error: casting to the same type is unnecessary (`f32` -> `f32`)
170170
--> $DIR/cast.rs:38:5

tests/ui/cast_alignment.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
error: casting from `*const u8` to a more-strictly-aligned pointer (`*const u16`)
2-
--> $DIR/cast_alignment.rs:13:5
2+
--> $DIR/cast_alignment.rs:15:5
33
|
4-
13 | (&1u8 as *const u8) as *const u16;
4+
15 | (&1u8 as *const u8) as *const u16;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: `-D cast-ptr-alignment` implied by `-D warnings`
7+
= note: `-D clippy::cast-ptr-alignment` implied by `-D warnings`
88

99
error: casting from `*mut u8` to a more-strictly-aligned pointer (`*mut u16`)
10-
--> $DIR/cast_alignment.rs:14:5
10+
--> $DIR/cast_alignment.rs:16:5
1111
|
12-
14 | (&mut 1u8 as *mut u8) as *mut u16;
12+
16 | (&mut 1u8 as *mut u8) as *mut u16;
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414

1515
error: aborting due to 2 previous errors

tests/ui/cast_lossless_float.stderr

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
error: casting i8 to f32 may become silently lossy if types change
2-
--> $DIR/cast_lossless_float.rs:5:5
2+
--> $DIR/cast_lossless_float.rs:7:5
33
|
4-
5 | 1i8 as f32;
4+
7 | 1i8 as f32;
55
| ^^^^^^^^^^ help: try: `f32::from(1i8)`
66
|
7-
= note: `-D cast-lossless` implied by `-D warnings`
7+
= note: `-D clippy::cast-lossless` implied by `-D warnings`
88

99
error: casting i8 to f64 may become silently lossy if types change
10-
--> $DIR/cast_lossless_float.rs:6:5
10+
--> $DIR/cast_lossless_float.rs:8:5
1111
|
12-
6 | 1i8 as f64;
12+
8 | 1i8 as f64;
1313
| ^^^^^^^^^^ help: try: `f64::from(1i8)`
1414

1515
error: casting u8 to f32 may become silently lossy if types change
16-
--> $DIR/cast_lossless_float.rs:7:5
16+
--> $DIR/cast_lossless_float.rs:9:5
1717
|
18-
7 | 1u8 as f32;
18+
9 | 1u8 as f32;
1919
| ^^^^^^^^^^ help: try: `f32::from(1u8)`
2020

2121
error: casting u8 to f64 may become silently lossy if types change
22-
--> $DIR/cast_lossless_float.rs:8:5
23-
|
24-
8 | 1u8 as f64;
25-
| ^^^^^^^^^^ help: try: `f64::from(1u8)`
22+
--> $DIR/cast_lossless_float.rs:10:5
23+
|
24+
10 | 1u8 as f64;
25+
| ^^^^^^^^^^ help: try: `f64::from(1u8)`
2626

2727
error: casting i16 to f32 may become silently lossy if types change
28-
--> $DIR/cast_lossless_float.rs:9:5
29-
|
30-
9 | 1i16 as f32;
31-
| ^^^^^^^^^^^ help: try: `f32::from(1i16)`
28+
--> $DIR/cast_lossless_float.rs:11:5
29+
|
30+
11 | 1i16 as f32;
31+
| ^^^^^^^^^^^ help: try: `f32::from(1i16)`
3232

3333
error: casting i16 to f64 may become silently lossy if types change
34-
--> $DIR/cast_lossless_float.rs:10:5
34+
--> $DIR/cast_lossless_float.rs:12:5
3535
|
36-
10 | 1i16 as f64;
36+
12 | 1i16 as f64;
3737
| ^^^^^^^^^^^ help: try: `f64::from(1i16)`
3838

3939
error: casting u16 to f32 may become silently lossy if types change
40-
--> $DIR/cast_lossless_float.rs:11:5
40+
--> $DIR/cast_lossless_float.rs:13:5
4141
|
42-
11 | 1u16 as f32;
42+
13 | 1u16 as f32;
4343
| ^^^^^^^^^^^ help: try: `f32::from(1u16)`
4444

4545
error: casting u16 to f64 may become silently lossy if types change
46-
--> $DIR/cast_lossless_float.rs:12:5
46+
--> $DIR/cast_lossless_float.rs:14:5
4747
|
48-
12 | 1u16 as f64;
48+
14 | 1u16 as f64;
4949
| ^^^^^^^^^^^ help: try: `f64::from(1u16)`
5050

5151
error: casting i32 to f64 may become silently lossy if types change
52-
--> $DIR/cast_lossless_float.rs:13:5
52+
--> $DIR/cast_lossless_float.rs:15:5
5353
|
54-
13 | 1i32 as f64;
54+
15 | 1i32 as f64;
5555
| ^^^^^^^^^^^ help: try: `f64::from(1i32)`
5656

5757
error: casting u32 to f64 may become silently lossy if types change
58-
--> $DIR/cast_lossless_float.rs:14:5
58+
--> $DIR/cast_lossless_float.rs:16:5
5959
|
60-
14 | 1u32 as f64;
60+
16 | 1u32 as f64;
6161
| ^^^^^^^^^^^ help: try: `f64::from(1u32)`
6262

6363
error: aborting due to 10 previous errors

0 commit comments

Comments
 (0)