Skip to content

Commit f97b493

Browse files
committed
Remove no-rustfix
1 parent 50d19cf commit f97b493

7 files changed

+17
-24
lines changed

tests/ui/char_lit_as_u8_unfixable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//@no-rustfix
21
#![warn(clippy::char_lit_as_u8)]
32

43
fn main() {

tests/ui/char_lit_as_u8_unfixable.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: casting a character literal to `u8` truncates
2-
--> tests/ui/char_lit_as_u8_unfixable.rs:6:13
2+
--> tests/ui/char_lit_as_u8_unfixable.rs:5:13
33
|
44
LL | let _ = '❤' as u8;
55
| ^^^^^^^^^

tests/ui/must_use_unit_unfixable.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//@no-rustfix
2-
31
#[cfg_attr(all(), must_use, deprecated)]
42
fn issue_12320() {}
53
//~^ must_use_unit

tests/ui/must_use_unit_unfixable.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
error: this unit-returning function has a `#[must_use]` attribute
2-
--> tests/ui/must_use_unit_unfixable.rs:4:1
2+
--> tests/ui/must_use_unit_unfixable.rs:2:1
33
|
44
LL | fn issue_12320() {}
55
| ^^^^^^^^^^^^^^^^
66
|
77
help: remove `must_use`
8-
--> tests/ui/must_use_unit_unfixable.rs:3:19
8+
--> tests/ui/must_use_unit_unfixable.rs:1:19
99
|
1010
LL | #[cfg_attr(all(), must_use, deprecated)]
1111
| ^^^^^^^^
1212
= note: `-D clippy::must-use-unit` implied by `-D warnings`
1313
= help: to override `-D warnings` add `#[allow(clippy::must_use_unit)]`
1414

1515
error: this unit-returning function has a `#[must_use]` attribute
16-
--> tests/ui/must_use_unit_unfixable.rs:8:1
16+
--> tests/ui/must_use_unit_unfixable.rs:6:1
1717
|
1818
LL | fn issue_12320_2() {}
1919
| ^^^^^^^^^^^^^^^^^^
2020
|
2121
help: remove `must_use`
22-
--> tests/ui/must_use_unit_unfixable.rs:7:44
22+
--> tests/ui/must_use_unit_unfixable.rs:5:44
2323
|
2424
LL | #[cfg_attr(all(), deprecated, doc = "foo", must_use)]
2525
| ^^^^^^^^

tests/ui/needless_borrow_pat.fixed

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// FIXME: run-rustfix waiting on multi-span suggestions
2-
31
#![warn(clippy::needless_borrow)]
42
#![allow(clippy::needless_borrowed_reference, clippy::explicit_auto_deref)]
53

tests/ui/needless_borrow_pat.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// FIXME: run-rustfix waiting on multi-span suggestions
2-
31
#![warn(clippy::needless_borrow)]
42
#![allow(clippy::needless_borrowed_reference, clippy::explicit_auto_deref)]
53

tests/ui/needless_borrow_pat.stderr

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this pattern creates a reference to a reference
2-
--> tests/ui/needless_borrow_pat.rs:59:14
2+
--> tests/ui/needless_borrow_pat.rs:57:14
33
|
44
LL | Some(ref x) => x,
55
| ^^^^^ help: try: `x`
@@ -8,7 +8,7 @@ LL | Some(ref x) => x,
88
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
99

1010
error: this pattern creates a reference to a reference
11-
--> tests/ui/needless_borrow_pat.rs:66:14
11+
--> tests/ui/needless_borrow_pat.rs:64:14
1212
|
1313
LL | Some(ref x) => *x,
1414
| ^^^^^
@@ -20,7 +20,7 @@ LL + Some(x) => x,
2020
|
2121

2222
error: this pattern creates a reference to a reference
23-
--> tests/ui/needless_borrow_pat.rs:73:14
23+
--> tests/ui/needless_borrow_pat.rs:71:14
2424
|
2525
LL | Some(ref x) => {
2626
| ^^^^^
@@ -35,19 +35,19 @@ LL ~ f1(x);
3535
|
3636

3737
error: this pattern creates a reference to a reference
38-
--> tests/ui/needless_borrow_pat.rs:85:14
38+
--> tests/ui/needless_borrow_pat.rs:83:14
3939
|
4040
LL | Some(ref x) => m1!(x),
4141
| ^^^^^ help: try: `x`
4242

4343
error: this pattern creates a reference to a reference
44-
--> tests/ui/needless_borrow_pat.rs:91:15
44+
--> tests/ui/needless_borrow_pat.rs:89:15
4545
|
4646
LL | let _ = |&ref x: &&String| {
4747
| ^^^^^ help: try: `x`
4848

4949
error: this pattern creates a reference to a reference
50-
--> tests/ui/needless_borrow_pat.rs:98:10
50+
--> tests/ui/needless_borrow_pat.rs:96:10
5151
|
5252
LL | let (ref y,) = (&x,);
5353
| ^^^^^
@@ -61,13 +61,13 @@ LL ~ let _: &String = y;
6161
|
6262

6363
error: this pattern creates a reference to a reference
64-
--> tests/ui/needless_borrow_pat.rs:110:14
64+
--> tests/ui/needless_borrow_pat.rs:108:14
6565
|
6666
LL | Some(ref x) => x.0,
6767
| ^^^^^ help: try: `x`
6868

6969
error: this pattern creates a reference to a reference
70-
--> tests/ui/needless_borrow_pat.rs:121:14
70+
--> tests/ui/needless_borrow_pat.rs:119:14
7171
|
7272
LL | E::A(ref x) | E::B(ref x) => *x,
7373
| ^^^^^ ^^^^^
@@ -79,13 +79,13 @@ LL + E::A(x) | E::B(x) => x,
7979
|
8080

8181
error: this pattern creates a reference to a reference
82-
--> tests/ui/needless_borrow_pat.rs:128:21
82+
--> tests/ui/needless_borrow_pat.rs:126:21
8383
|
8484
LL | if let Some(ref x) = Some(&String::new());
8585
| ^^^^^ help: try: `x`
8686

8787
error: this pattern creates a reference to a reference
88-
--> tests/ui/needless_borrow_pat.rs:138:12
88+
--> tests/ui/needless_borrow_pat.rs:136:12
8989
|
9090
LL | fn f2<'a>(&ref x: &&'a String) -> &'a String {
9191
| ^^^^^
@@ -100,13 +100,13 @@ LL ~ x
100100
|
101101

102102
error: this pattern creates a reference to a reference
103-
--> tests/ui/needless_borrow_pat.rs:147:11
103+
--> tests/ui/needless_borrow_pat.rs:145:11
104104
|
105105
LL | fn f(&ref x: &&String) {
106106
| ^^^^^ help: try: `x`
107107

108108
error: this pattern creates a reference to a reference
109-
--> tests/ui/needless_borrow_pat.rs:157:11
109+
--> tests/ui/needless_borrow_pat.rs:155:11
110110
|
111111
LL | fn f(&ref x: &&String) {
112112
| ^^^^^

0 commit comments

Comments
 (0)