Document report_redundant_format_arguments()

This commit is contained in:
francorbacho 2023-10-04 17:38:46 +02:00
parent 9c921f843c
commit e1c18f4d9d

View File

@ -708,6 +708,8 @@ fn report_missing_placeholders(
diag.emit();
}
/// This function detects and reports unused format!() arguments that are
/// redundant due to implicit captures (e.g. `format!("{x}", x)`).
fn report_redundant_format_arguments(
ecx: &mut ExtCtxt<'_>,
fmt_span: Span,