Skip to content

Commit ab089ca

Browse files
committed
Update the stderr files once again
1 parent 2ccf42a commit ab089ca

File tree

4 files changed

+5
-70
lines changed

4 files changed

+5
-70
lines changed

tests/ui/drop_forget_copy.stderr

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,6 @@ note: argument has type SomeStruct
2323
34 | drop(s2);
2424
| ^^
2525

26-
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
27-
--> $DIR/drop_forget_copy.rs:35:5
28-
|
29-
35 | drop(s3);
30-
| ^^^^^^^^
31-
|
32-
= note: #[deny(clippy::drop_ref)] on by default
33-
note: argument has type &SomeStruct
34-
--> $DIR/drop_forget_copy.rs:35:10
35-
|
36-
35 | drop(s3);
37-
| ^^
38-
3926
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
4027
--> $DIR/drop_forget_copy.rs:36:5
4128
|
@@ -48,18 +35,6 @@ note: argument has type SomeStruct
4835
36 | drop(s4);
4936
| ^^
5037

51-
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
52-
--> $DIR/drop_forget_copy.rs:37:5
53-
|
54-
37 | drop(s5);
55-
| ^^^^^^^^
56-
|
57-
note: argument has type &SomeStruct
58-
--> $DIR/drop_forget_copy.rs:37:10
59-
|
60-
37 | drop(s5);
61-
| ^^
62-
6338
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
6439
--> $DIR/drop_forget_copy.rs:39:5
6540
|
@@ -97,29 +72,5 @@ note: argument has type SomeStruct
9772
42 | forget(s4);
9873
| ^^
9974

100-
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
101-
--> $DIR/drop_forget_copy.rs:51:5
102-
|
103-
51 | drop(a2);
104-
| ^^^^^^^^
105-
|
106-
note: argument has type &AnotherStruct
107-
--> $DIR/drop_forget_copy.rs:51:10
108-
|
109-
51 | drop(a2);
110-
| ^^
111-
112-
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
113-
--> $DIR/drop_forget_copy.rs:53:5
114-
|
115-
53 | drop(a4);
116-
| ^^^^^^^^
117-
|
118-
note: argument has type &AnotherStruct
119-
--> $DIR/drop_forget_copy.rs:53:10
120-
|
121-
53 | drop(a4);
122-
| ^^
123-
124-
error: aborting due to 10 previous errors
75+
error: aborting due to 6 previous errors
12576

tests/ui/drop_forget_ref.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: calls to `std::mem::drop` with a reference instead of an owned value. Dro
44
12 | drop(&SomeStruct);
55
| ^^^^^^^^^^^^^^^^^
66
|
7-
= note: #[deny(clippy::drop_ref)] on by default
7+
= note: `-D clippy::drop-ref` implied by `-D warnings`
88
note: argument has type &SomeStruct
99
--> $DIR/drop_forget_ref.rs:12:10
1010
|

tests/ui/else_if_without_else.stderr

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
error: unknown lint: `clippy`
2-
--> $DIR/else_if_without_else.rs:3:9
3-
|
4-
3 | #![warn(clippy)]
5-
| ^^^^^^
6-
|
7-
= note: `-D unknown-lints` implied by `-D warnings`
8-
91
error: if expression with an `else if`, but without a final `else`
102
--> $DIR/else_if_without_else.rs:41:12
113
|
@@ -26,5 +18,5 @@ error: if expression with an `else if`, but without a final `else`
2618
51 | | }
2719
| |_____^ help: add an `else` block here
2820

29-
error: aborting due to 3 previous errors
21+
error: aborting due to 2 previous errors
3022

tests/ui/formatting.stderr

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
error: unknown lint: `clippy`
2-
--> $DIR/formatting.rs:4:9
3-
|
4-
4 | #![warn(clippy)]
5-
| ^^^^^^
6-
|
7-
= note: `-D unknown-lints` implied by `-D warnings`
8-
91
error: this looks like an `else if` but the `else` is missing
102
--> $DIR/formatting.rs:15:6
113
|
@@ -83,7 +75,7 @@ error: possibly missing a comma here
8375
84 | -1, -2, -3 // <= no comma here
8476
| ^
8577
|
86-
= note: #[deny(clippy::possible_missing_comma)] on by default
78+
= note: `-D clippy::possible-missing-comma` implied by `-D warnings`
8779
= note: to remove this lint, add a comma or write the expr in a single line
8880

8981
error: possibly missing a comma here
@@ -94,5 +86,5 @@ error: possibly missing a comma here
9486
|
9587
= note: to remove this lint, add a comma or write the expr in a single line
9688

97-
error: aborting due to 11 previous errors
89+
error: aborting due to 10 previous errors
9890

0 commit comments

Comments
 (0)