1
Fork 0

Highlight redundant arguments instead of the whole format string

This commit is contained in:
francorbacho 2023-10-05 14:36:50 +02:00
parent fcdd5c0b2d
commit 905bace904
4 changed files with 22 additions and 23 deletions

View file

@ -650,7 +650,7 @@ pub(crate) struct FormatPositionalMismatch {
#[diag(builtin_macros_format_redundant_args)]
pub(crate) struct FormatRedundantArgs {
#[primary_span]
pub(crate) fmt_span: Span,
pub(crate) span: MultiSpan,
pub(crate) n: usize,
#[note]