From 9c921f843c78a98b8b0eaa40f2b20b60543ebf53 Mon Sep 17 00:00:00 2001 From: francorbacho Date: Wed, 4 Oct 2023 17:35:39 +0200 Subject: [PATCH] Rename report_redundant_placeholders() to report_redundant_format_arguments() --- compiler/rustc_builtin_macros/src/format.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs index 32a90b307ef3..8cdab65b6b32 100644 --- a/compiler/rustc_builtin_macros/src/format.rs +++ b/compiler/rustc_builtin_macros/src/format.rs @@ -616,7 +616,7 @@ fn report_missing_placeholders( .collect::>(); 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,