Edition <2021 uninlined_format_args
fix causes non_fmt_panics
#10236
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
uninlined_format_args
can be false positive for older edition, e.g. 2018, where some macros do not support such formatting.Lint Name
uninlined_format_args
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No such warning unless on at least edition 2021.
If the fix is applied to older editions it'll result in the rustc warning
And indeed it will not work outputting
thread 'main' panicked at 'v non-empty: {v:?}'
(instead ofthread 'main' panicked at 'v non-empty: [1]'
)Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: