Skip to content

Commit 9c921f8

Browse files
committed
Rename report_redundant_placeholders() to report_redundant_format_arguments()
1 parent 04fc051 commit 9c921f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_builtin_macros/src/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ fn report_missing_placeholders(
616616
.collect::<Vec<_>>();
617617

618618
if !placeholders.is_empty() {
619-
report_redundant_placeholders(ecx, fmt_span, &args, used, placeholders);
619+
report_redundant_format_arguments(ecx, fmt_span, &args, used, placeholders);
620620
diag.cancel();
621621
return;
622622
}
@@ -708,7 +708,7 @@ fn report_missing_placeholders(
708708
diag.emit();
709709
}
710710

711-
fn report_redundant_placeholders(
711+
fn report_redundant_format_arguments(
712712
ecx: &mut ExtCtxt<'_>,
713713
fmt_span: Span,
714714
args: &FormatArguments,

0 commit comments

Comments
 (0)