@@ -108,28 +108,36 @@ LL | async fn inner_async3(x: &mut i32, y: &mut u32) {
108108 | ^^^^^^^^ help: consider changing to: `&i32`
109109
110110error: 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
112120 |
113121LL | pub async fn closure(n: &mut usize) -> impl '_ + FnMut() {
114122 | ^^^^^^^^^^ help: consider changing to: `&usize`
115123 |
116124 = warning: changing this function will impact semver compatibility
117125
118126error: 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
120128 |
121129LL | pub fn closure2(n: &mut usize) -> impl '_ + FnMut() -> usize {
122130 | ^^^^^^^^^^ help: consider changing to: `&usize`
123131 |
124132 = warning: changing this function will impact semver compatibility
125133
126134error: 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
128136 |
129137LL | pub async fn closure4(n: &mut usize) {
130138 | ^^^^^^^^^^ help: consider changing to: `&usize`
131139 |
132140 = warning: changing this function will impact semver compatibility
133141
134- error: aborting due to 20 previous errors
142+ error: aborting due to 21 previous errors
135143
0 commit comments