Highlight redundant arguments instead of the whole format string
This commit is contained in:
parent
fcdd5c0b2d
commit
905bace904
4 changed files with 22 additions and 23 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue