Skip to content

Commit c769f12

Browse files
committed
Rename report_redundant_placeholders() to report_redundant_format_arguments()
1 parent 03fe775 commit c769f12

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
@@ -607,7 +607,7 @@ fn report_missing_placeholders(
607607
.collect::<Vec<_>>();
608608

609609
if !placeholders.is_empty() {
610-
report_redundant_placeholders(ecx, fmt_span, &args, used, placeholders);
610+
report_redundant_format_arguments(ecx, fmt_span, &args, used, placeholders);
611611
diag.cancel();
612612
return;
613613
}
@@ -699,7 +699,7 @@ fn report_missing_placeholders(
699699
diag.emit();
700700
}
701701

702-
fn report_redundant_placeholders(
702+
fn report_redundant_format_arguments(
703703
ecx: &mut ExtCtxt<'_>,
704704
fmt_span: Span,
705705
args: &FormatArguments,

0 commit comments

Comments
 (0)