@@ -108,28 +108,36 @@ LL | async fn inner_async3(x: &mut i32, y: &mut u32) {
108
108
| ^^^^^^^^ help: consider changing to: `&i32`
109
109
110
110
error: this argument is a mutable reference, but not used mutably
111
- --> $DIR/needless_pass_by_ref_mut.rs:235:25
111
+ --> $DIR/needless_pass_by_ref_mut.rs:235:34
112
+ |
113
+ LL | pub async fn call_in_closure1(n: &mut str) {
114
+ | ^^^^^^^^ help: consider changing to: `&str`
115
+ |
116
+ = warning: changing this function will impact semver compatibility
117
+
118
+ error: this argument is a mutable reference, but not used mutably
119
+ --> $DIR/needless_pass_by_ref_mut.rs:247:25
112
120
|
113
121
LL | pub async fn closure(n: &mut usize) -> impl '_ + FnMut() {
114
122
| ^^^^^^^^^^ help: consider changing to: `&usize`
115
123
|
116
124
= warning: changing this function will impact semver compatibility
117
125
118
126
error: this argument is a mutable reference, but not used mutably
119
- --> $DIR/needless_pass_by_ref_mut.rs:242 :20
127
+ --> $DIR/needless_pass_by_ref_mut.rs:254 :20
120
128
|
121
129
LL | pub fn closure2(n: &mut usize) -> impl '_ + FnMut() -> usize {
122
130
| ^^^^^^^^^^ help: consider changing to: `&usize`
123
131
|
124
132
= warning: changing this function will impact semver compatibility
125
133
126
134
error: this argument is a mutable reference, but not used mutably
127
- --> $DIR/needless_pass_by_ref_mut.rs:253 :26
135
+ --> $DIR/needless_pass_by_ref_mut.rs:265 :26
128
136
|
129
137
LL | pub async fn closure4(n: &mut usize) {
130
138
| ^^^^^^^^^^ help: consider changing to: `&usize`
131
139
|
132
140
= warning: changing this function will impact semver compatibility
133
141
134
- error: aborting due to 20 previous errors
142
+ error: aborting due to 21 previous errors
135
143
0 commit comments