Rename report_redundant_placeholders() to report_redundant_format_arguments()
This commit is contained in:
parent
04fc051a34
commit
9c921f843c
1 changed files with 2 additions and 2 deletions
|
@ -616,7 +616,7 @@ fn report_missing_placeholders(
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
if !placeholders.is_empty() {
|
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();
|
diag.cancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -708,7 +708,7 @@ fn report_missing_placeholders(
|
||||||
diag.emit();
|
diag.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn report_redundant_placeholders(
|
fn report_redundant_format_arguments(
|
||||||
ecx: &mut ExtCtxt<'_>,
|
ecx: &mut ExtCtxt<'_>,
|
||||||
fmt_span: Span,
|
fmt_span: Span,
|
||||||
args: &FormatArguments,
|
args: &FormatArguments,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue