Skip to content

Commit 2ad9cac

Browse files
committed
remove rustfix
1 parent 2828179 commit 2ad9cac

3 files changed

Lines changed: 7 additions & 79 deletions

File tree

tests/ui/fn_arg_mut_rebindings.fixed

Lines changed: 0 additions & 73 deletions
This file was deleted.

tests/ui/fn_arg_mut_rebindings.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@aux-build:proc_macros.rs
2+
//@no-rustfix
23

34
#![warn(clippy::fn_arg_mut_rebindings)]
45

tests/ui/fn_arg_mut_rebindings.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
error: argument `x` is declared as not mutable, and later rebound as mutable
2-
--> tests/ui/fn_arg_mut_rebindings.rs:14:22
2+
--> tests/ui/fn_arg_mut_rebindings.rs:15:22
33
|
44
LL | fn fn_body_rebinding(x: bool) {
55
| ^^^^^^^ help: consider just declaring as mutable: `mut x: bool`
66
|
77
help: and remove this
8-
--> tests/ui/fn_arg_mut_rebindings.rs:16:5
8+
--> tests/ui/fn_arg_mut_rebindings.rs:17:5
99
|
1010
LL | let mut x = x;
1111
| ^^^^^^^^^^^^^^
1212
= note: `-D clippy::fn-arg-mut-rebindings` implied by `-D warnings`
1313
= help: to override `-D warnings` add `#[allow(clippy::fn_arg_mut_rebindings)]`
1414

1515
error: argument `x` is declared as not mutable, and later rebound as mutable
16-
--> tests/ui/fn_arg_mut_rebindings.rs:48:37
16+
--> tests/ui/fn_arg_mut_rebindings.rs:49:37
1717
|
1818
LL | fn provided_fn_rebinding(&self, x: bool) {
1919
| ^^^^^^^ help: consider just declaring as mutable: `mut x: bool`
2020
|
2121
help: and remove this
22-
--> tests/ui/fn_arg_mut_rebindings.rs:50:9
22+
--> tests/ui/fn_arg_mut_rebindings.rs:51:9
2323
|
2424
LL | let mut x = x;
2525
| ^^^^^^^^^^^^^^
2626

2727
error: argument `x` is declared as not mutable, and later rebound as mutable
28-
--> tests/ui/fn_arg_mut_rebindings.rs:59:33
28+
--> tests/ui/fn_arg_mut_rebindings.rs:60:33
2929
|
3030
LL | fn impl_fn_rebinding(&self, x: bool) {
3131
| ^^^^^^^ help: consider just declaring as mutable: `mut x: bool`
3232
|
3333
help: and remove this
34-
--> tests/ui/fn_arg_mut_rebindings.rs:61:9
34+
--> tests/ui/fn_arg_mut_rebindings.rs:62:9
3535
|
3636
LL | let mut x = x;
3737
| ^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)