|
1 | 1 | error: this argument is a mutable reference, but not used mutably |
2 | | - --> $DIR/needless_pass_by_ref_mut.rs:7:11 |
| 2 | + --> $DIR/needless_pass_by_ref_mut.rs:6:11 |
3 | 3 | | |
4 | 4 | LL | fn foo(s: &mut Vec<u32>, b: &u32, x: &mut u32) { |
5 | 5 | | ^^^^^^^^^^^^^ help: consider changing to: `&Vec<u32>` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::needless-pass-by-ref-mut` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: this argument is a mutable reference, but not used mutably |
10 | | - --> $DIR/needless_pass_by_ref_mut.rs:32:12 |
| 10 | + --> $DIR/needless_pass_by_ref_mut.rs:31:12 |
11 | 11 | | |
12 | 12 | LL | fn foo6(s: &mut Vec<u32>) { |
13 | 13 | | ^^^^^^^^^^^^^ help: consider changing to: `&Vec<u32>` |
14 | 14 |
|
15 | 15 | error: this argument is a mutable reference, but not used mutably |
16 | | - --> $DIR/needless_pass_by_ref_mut.rs:45:29 |
| 16 | + --> $DIR/needless_pass_by_ref_mut.rs:44:29 |
17 | 17 | | |
18 | 18 | LL | fn mushroom(&self, vec: &mut Vec<i32>) -> usize { |
19 | 19 | | ^^^^^^^^^^^^^ help: consider changing to: `&Vec<i32>` |
20 | 20 |
|
21 | 21 | error: this argument is a mutable reference, but not used mutably |
22 | | - --> $DIR/needless_pass_by_ref_mut.rs:50:31 |
| 22 | + --> $DIR/needless_pass_by_ref_mut.rs:49:31 |
23 | 23 | | |
24 | 24 | LL | fn badger(&mut self, vec: &mut Vec<i32>) -> usize { |
25 | 25 | | ^^^^^^^^^^^^^ help: consider changing to: `&Vec<i32>` |
26 | 26 |
|
27 | 27 | error: this argument is a mutable reference, but not used mutably |
28 | | - --> $DIR/needless_pass_by_ref_mut.rs:127:16 |
| 28 | + --> $DIR/needless_pass_by_ref_mut.rs:126:16 |
29 | 29 | | |
30 | 30 | LL | async fn a1(x: &mut i32) { |
31 | 31 | | ^^^^^^^^ help: consider changing to: `&i32` |
32 | 32 |
|
33 | 33 | error: this argument is a mutable reference, but not used mutably |
34 | | - --> $DIR/needless_pass_by_ref_mut.rs:131:16 |
| 34 | + --> $DIR/needless_pass_by_ref_mut.rs:130:16 |
35 | 35 | | |
36 | 36 | LL | async fn a2(x: &mut i32, y: String) { |
37 | 37 | | ^^^^^^^^ help: consider changing to: `&i32` |
38 | 38 |
|
39 | 39 | error: this argument is a mutable reference, but not used mutably |
40 | | - --> $DIR/needless_pass_by_ref_mut.rs:135:16 |
| 40 | + --> $DIR/needless_pass_by_ref_mut.rs:134:16 |
41 | 41 | | |
42 | 42 | LL | async fn a3(x: &mut i32, y: String, z: String) { |
43 | 43 | | ^^^^^^^^ help: consider changing to: `&i32` |
44 | 44 |
|
45 | 45 | error: this argument is a mutable reference, but not used mutably |
46 | | - --> $DIR/needless_pass_by_ref_mut.rs:139:16 |
| 46 | + --> $DIR/needless_pass_by_ref_mut.rs:138:16 |
47 | 47 | | |
48 | 48 | LL | async fn a4(x: &mut i32, y: i32) { |
49 | 49 | | ^^^^^^^^ help: consider changing to: `&i32` |
50 | 50 |
|
51 | 51 | error: this argument is a mutable reference, but not used mutably |
52 | | - --> $DIR/needless_pass_by_ref_mut.rs:143:24 |
| 52 | + --> $DIR/needless_pass_by_ref_mut.rs:142:24 |
53 | 53 | | |
54 | 54 | LL | async fn a5(x: i32, y: &mut i32) { |
55 | 55 | | ^^^^^^^^ help: consider changing to: `&i32` |
56 | 56 |
|
57 | 57 | error: this argument is a mutable reference, but not used mutably |
58 | | - --> $DIR/needless_pass_by_ref_mut.rs:147:24 |
| 58 | + --> $DIR/needless_pass_by_ref_mut.rs:146:24 |
59 | 59 | | |
60 | 60 | LL | async fn a6(x: i32, y: &mut i32) { |
61 | 61 | | ^^^^^^^^ help: consider changing to: `&i32` |
62 | 62 |
|
63 | 63 | error: this argument is a mutable reference, but not used mutably |
64 | | - --> $DIR/needless_pass_by_ref_mut.rs:151:32 |
| 64 | + --> $DIR/needless_pass_by_ref_mut.rs:150:32 |
65 | 65 | | |
66 | 66 | LL | async fn a7(x: i32, y: i32, z: &mut i32) { |
67 | 67 | | ^^^^^^^^ help: consider changing to: `&i32` |
68 | 68 |
|
69 | 69 | error: this argument is a mutable reference, but not used mutably |
70 | | - --> $DIR/needless_pass_by_ref_mut.rs:155:24 |
| 70 | + --> $DIR/needless_pass_by_ref_mut.rs:154:24 |
71 | 71 | | |
72 | 72 | LL | async fn a8(x: i32, a: &mut i32, y: i32, z: &mut i32) { |
73 | 73 | | ^^^^^^^^ help: consider changing to: `&i32` |
74 | 74 |
|
75 | 75 | error: this argument is a mutable reference, but not used mutably |
76 | | - --> $DIR/needless_pass_by_ref_mut.rs:155:45 |
| 76 | + --> $DIR/needless_pass_by_ref_mut.rs:154:45 |
77 | 77 | | |
78 | 78 | LL | async fn a8(x: i32, a: &mut i32, y: i32, z: &mut i32) { |
79 | 79 | | ^^^^^^^^ help: consider changing to: `&i32` |
80 | 80 |
|
81 | | -error: aborting due to 13 previous errors |
| 81 | +error: this argument is a mutable reference, but not used mutably |
| 82 | + --> $DIR/needless_pass_by_ref_mut.rs:188:16 |
| 83 | + | |
| 84 | +LL | fn cfg_warn(s: &mut u32) {} |
| 85 | + | ^^^^^^^^ help: consider changing to: `&u32` |
| 86 | + | |
| 87 | + = note: this is cfg-gated and may require further changes |
| 88 | + |
| 89 | +error: this argument is a mutable reference, but not used mutably |
| 90 | + --> $DIR/needless_pass_by_ref_mut.rs:194:20 |
| 91 | + | |
| 92 | +LL | fn cfg_warn(s: &mut u32) {} |
| 93 | + | ^^^^^^^^ help: consider changing to: `&u32` |
| 94 | + | |
| 95 | + = note: this is cfg-gated and may require further changes |
| 96 | + |
| 97 | +error: aborting due to 15 previous errors |
82 | 98 |
|
0 commit comments