1
Fork 0

Rename report_redundant_placeholders() to report_redundant_format_arguments()

This commit is contained in:
francorbacho 2023-10-04 17:35:39 +02:00
parent 04fc051a34
commit 9c921f843c

View file

@ -616,7 +616,7 @@ fn report_missing_placeholders(
.collect::<Vec<_>>();
if !placeholders.is_empty() {
report_redundant_placeholders(ecx, fmt_span, &args, used, placeholders);
report_redundant_format_arguments(ecx, fmt_span, &args, used, placeholders);
diag.cancel();
return;
}
@ -708,7 +708,7 @@ fn report_missing_placeholders(
diag.emit();
}
fn report_redundant_placeholders(
fn report_redundant_format_arguments(
ecx: &mut ExtCtxt<'_>,
fmt_span: Span,
args: &FormatArguments,