@@ -24,5 +24,59 @@ error: this argument is a mutable reference, but not used mutably
2424LL | fn badger(&mut self, vec: &mut Vec<i32>) -> usize {
2525 | ^^^^^^^^^^^^^ help: consider changing to: `&Vec<i32>`
2626
27- error: aborting due to 4 previous errors
27+ error: this argument is a mutable reference, but not used mutably
28+ --> $DIR/needless_pass_by_ref_mut.rs:126:16
29+ |
30+ LL | async fn a1(x: &mut i32) {
31+ | ^^^^^^^^ help: consider changing to: `&i32`
32+
33+ error: this argument is a mutable reference, but not used mutably
34+ --> $DIR/needless_pass_by_ref_mut.rs:130:16
35+ |
36+ LL | async fn a2(x: &mut i32, y: String) {
37+ | ^^^^^^^^ help: consider changing to: `&i32`
38+
39+ error: this argument is a mutable reference, but not used mutably
40+ --> $DIR/needless_pass_by_ref_mut.rs:134:16
41+ |
42+ LL | async fn a3(x: &mut i32, y: String, z: String) {
43+ | ^^^^^^^^ help: consider changing to: `&i32`
44+
45+ error: this argument is a mutable reference, but not used mutably
46+ --> $DIR/needless_pass_by_ref_mut.rs:138:16
47+ |
48+ LL | async fn a4(x: &mut i32, y: i32) {
49+ | ^^^^^^^^ help: consider changing to: `&i32`
50+
51+ error: this argument is a mutable reference, but not used mutably
52+ --> $DIR/needless_pass_by_ref_mut.rs:142:24
53+ |
54+ LL | async fn a5(x: i32, y: &mut i32) {
55+ | ^^^^^^^^ help: consider changing to: `&i32`
56+
57+ error: this argument is a mutable reference, but not used mutably
58+ --> $DIR/needless_pass_by_ref_mut.rs:146:24
59+ |
60+ LL | async fn a6(x: i32, y: &mut i32) {
61+ | ^^^^^^^^ help: consider changing to: `&i32`
62+
63+ error: this argument is a mutable reference, but not used mutably
64+ --> $DIR/needless_pass_by_ref_mut.rs:150:32
65+ |
66+ LL | async fn a7(x: i32, y: i32, z: &mut i32) {
67+ | ^^^^^^^^ help: consider changing to: `&i32`
68+
69+ error: this argument is a mutable reference, but not used mutably
70+ --> $DIR/needless_pass_by_ref_mut.rs:154:24
71+ |
72+ LL | async fn a8(x: i32, a: &mut i32, y: i32, z: &mut i32) {
73+ | ^^^^^^^^ help: consider changing to: `&i32`
74+
75+ error: this argument is a mutable reference, but not used mutably
76+ --> $DIR/needless_pass_by_ref_mut.rs:154:45
77+ |
78+ LL | async fn a8(x: i32, a: &mut i32, y: i32, z: &mut i32) {
79+ | ^^^^^^^^ help: consider changing to: `&i32`
80+
81+ error: aborting due to 13 previous errors
2882
0 commit comments