We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c921f8 commit e1c18f4Copy full SHA for e1c18f4
compiler/rustc_builtin_macros/src/format.rs
@@ -708,6 +708,8 @@ fn report_missing_placeholders(
708
diag.emit();
709
}
710
711
+/// This function detects and reports unused format!() arguments that are
712
+/// redundant due to implicit captures (e.g. `format!("{x}", x)`).
713
fn report_redundant_format_arguments(
714
ecx: &mut ExtCtxt<'_>,
715
fmt_span: Span,
0 commit comments