Skip to content

Commit 06ded0e

Browse files
authored
Merge pull request #3516 from phansch/remove_run_rustfix_annotation
Remove a run-rustfix annotation (for now)
2 parents 8e1cd9e + 43542f8 commit 06ded0e

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

tests/ui/unused_unit.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// run-rustfix
1211
// compile-pass
1312

1413
// The output for humans should just highlight the whole span without showing

tests/ui/unused_unit.stderr

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
error: unneeded unit return type
2-
--> $DIR/unused_unit.rs:28:59
2+
--> $DIR/unused_unit.rs:27:59
33
|
4-
28 | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) ->
4+
27 | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) ->
55
| ___________________________________________________________^
6-
29 | | ()
6+
28 | | ()
77
| |__________^ help: remove the `-> ()`
88
|
99
note: lint level defined here
10-
--> $DIR/unused_unit.rs:21:9
10+
--> $DIR/unused_unit.rs:20:9
1111
|
12-
21 | #![deny(clippy::unused_unit)]
12+
20 | #![deny(clippy::unused_unit)]
1313
| ^^^^^^^^^^^^^^^^^^^
1414

1515
error: unneeded unit return type
16-
--> $DIR/unused_unit.rs:37:19
16+
--> $DIR/unused_unit.rs:36:19
1717
|
18-
37 | fn into(self) -> () {
18+
36 | fn into(self) -> () {
1919
| ^^^^^ help: remove the `-> ()`
2020

2121
error: unneeded unit expression
22-
--> $DIR/unused_unit.rs:38:9
22+
--> $DIR/unused_unit.rs:37:9
2323
|
24-
38 | ()
24+
37 | ()
2525
| ^^ help: remove the final `()`
2626

2727
error: unneeded unit return type
28-
--> $DIR/unused_unit.rs:42:18
28+
--> $DIR/unused_unit.rs:41:18
2929
|
30-
42 | fn return_unit() -> () { () }
30+
41 | fn return_unit() -> () { () }
3131
| ^^^^^ help: remove the `-> ()`
3232

3333
error: unneeded unit expression
34-
--> $DIR/unused_unit.rs:42:26
34+
--> $DIR/unused_unit.rs:41:26
3535
|
36-
42 | fn return_unit() -> () { () }
36+
41 | fn return_unit() -> () { () }
3737
| ^^ help: remove the final `()`
3838

3939
error: unneeded `()`
40-
--> $DIR/unused_unit.rs:49:14
40+
--> $DIR/unused_unit.rs:48:14
4141
|
42-
49 | break();
42+
48 | break();
4343
| ^^ help: remove the `()`
4444

4545
error: unneeded `()`
46-
--> $DIR/unused_unit.rs:51:11
46+
--> $DIR/unused_unit.rs:50:11
4747
|
48-
51 | return();
48+
50 | return();
4949
| ^^ help: remove the `()`
5050

5151
error: aborting due to 7 previous errors

0 commit comments

Comments
 (0)