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 c769f12 commit 13c249fCopy full SHA for 13c249f
compiler/rustc_builtin_macros/src/format.rs
@@ -699,6 +699,8 @@ fn report_missing_placeholders(
699
diag.emit();
700
}
701
702
+// This function detects and reports unused format!() arguments that are
703
+// redundant due to implicit captures (e.g. `format!("{x}", x)`).
704
fn report_redundant_format_arguments(
705
ecx: &mut ExtCtxt<'_>,
706
fmt_span: Span,
0 commit comments