@@ -174,5 +174,68 @@ LL | panic!("error: {}", format!("something failed at {}", Location::caller(
174174 = help: combine the `format!(..)` arguments with the outer `panic!(..)` call
175175 = help: or consider changing `format!` to `format_args!`
176176
177- error: aborting due to 18 previous errors
177+ error: `format!` in `usr_println!` args
178+ --> tests/ui/format_args_unfixable.rs:136:5
179+ |
180+ LL | usr_println!(true, "error: {}", format!("boom at {}", Location::caller()));
181+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
182+ |
183+ = help: combine the `format!(..)` arguments with the outer `usr_println!(..)` call
184+ = help: or consider changing `format!` to `format_args!`
185+
186+ error: `format!` in `usr_println!` args
187+ --> tests/ui/format_args_unfixable.rs:138:5
188+ |
189+ LL | usr_println!(true, "{}: {}", error, format!("boom at {}", Location::caller()));
190+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191+ |
192+ = help: combine the `format!(..)` arguments with the outer `usr_println!(..)` call
193+ = help: or consider changing `format!` to `format_args!`
194+
195+ error: `format!` in `usr_println!` args
196+ --> tests/ui/format_args_unfixable.rs:140:5
197+ |
198+ LL | usr_println!(true, "{:?}: {}", error, format!("boom at {}", Location::caller()));
199+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
200+ |
201+ = help: combine the `format!(..)` arguments with the outer `usr_println!(..)` call
202+ = help: or consider changing `format!` to `format_args!`
203+
204+ error: `format!` in `usr_println!` args
205+ --> tests/ui/format_args_unfixable.rs:142:5
206+ |
207+ LL | usr_println!(true, "{{}}: {}", format!("boom at {}", Location::caller()));
208+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
209+ |
210+ = help: combine the `format!(..)` arguments with the outer `usr_println!(..)` call
211+ = help: or consider changing `format!` to `format_args!`
212+
213+ error: `format!` in `usr_println!` args
214+ --> tests/ui/format_args_unfixable.rs:144:5
215+ |
216+ LL | usr_println!(true, r#"error: "{}""#, format!("boom at {}", Location::caller()));
217+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
218+ |
219+ = help: combine the `format!(..)` arguments with the outer `usr_println!(..)` call
220+ = help: or consider changing `format!` to `format_args!`
221+
222+ error: `format!` in `usr_println!` args
223+ --> tests/ui/format_args_unfixable.rs:146:5
224+ |
225+ LL | usr_println!(true, "error: {}", format!(r#"boom at "{}""#, Location::caller()));
226+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227+ |
228+ = help: combine the `format!(..)` arguments with the outer `usr_println!(..)` call
229+ = help: or consider changing `format!` to `format_args!`
230+
231+ error: `format!` in `usr_println!` args
232+ --> tests/ui/format_args_unfixable.rs:148:5
233+ |
234+ LL | usr_println!(true, "error: {}", format!("boom at {} {0}", Location::caller()));
235+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
236+ |
237+ = help: combine the `format!(..)` arguments with the outer `usr_println!(..)` call
238+ = help: or consider changing `format!` to `format_args!`
239+
240+ error: aborting due to 25 previous errors
178241
0 commit comments