|
1 | 1 | 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 |
3 | 3 | | |
4 | 4 | LL | fn fn_body_rebinding(x: bool) { |
5 | 5 | | ^^^^^^^ help: consider just declaring as mutable: `mut x: bool` |
6 | 6 | | |
7 | 7 | help: and remove this |
8 | | - --> tests/ui/fn_arg_mut_rebindings.rs:16:5 |
| 8 | + --> tests/ui/fn_arg_mut_rebindings.rs:17:5 |
9 | 9 | | |
10 | 10 | LL | let mut x = x; |
11 | 11 | | ^^^^^^^^^^^^^^ |
12 | 12 | = note: `-D clippy::fn-arg-mut-rebindings` implied by `-D warnings` |
13 | 13 | = help: to override `-D warnings` add `#[allow(clippy::fn_arg_mut_rebindings)]` |
14 | 14 |
|
15 | 15 | 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 |
17 | 17 | | |
18 | 18 | LL | fn provided_fn_rebinding(&self, x: bool) { |
19 | 19 | | ^^^^^^^ help: consider just declaring as mutable: `mut x: bool` |
20 | 20 | | |
21 | 21 | help: and remove this |
22 | | - --> tests/ui/fn_arg_mut_rebindings.rs:50:9 |
| 22 | + --> tests/ui/fn_arg_mut_rebindings.rs:51:9 |
23 | 23 | | |
24 | 24 | LL | let mut x = x; |
25 | 25 | | ^^^^^^^^^^^^^^ |
26 | 26 |
|
27 | 27 | 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 |
29 | 29 | | |
30 | 30 | LL | fn impl_fn_rebinding(&self, x: bool) { |
31 | 31 | | ^^^^^^^ help: consider just declaring as mutable: `mut x: bool` |
32 | 32 | | |
33 | 33 | help: and remove this |
34 | | - --> tests/ui/fn_arg_mut_rebindings.rs:61:9 |
| 34 | + --> tests/ui/fn_arg_mut_rebindings.rs:62:9 |
35 | 35 | | |
36 | 36 | LL | let mut x = x; |
37 | 37 | | ^^^^^^^^^^^^^^ |
|
0 commit comments