Differing uninlined_format_args
behavior between stable/beta
and nightly
?
#11470
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Sorry, this is weird and I don't know the reason for it.
cargo clippy
andcargo +beta clippy
produce different warnings thancargo +nightly clippy
on this code:The difference does't seem to be a commit: if you checkout tag
rust-1.72.0
and run it on the above code, you see the nightly behavior.The only things I've found that make a difference are: being stable/beta or being a uitest.
Re the latter, if you create a uitest and put both of the expected warnings in the stderr file, the test passes.
I've performed the above experiment on two different OSes (Linux and Mac)---same results.
I've also tried debug vs. release. Again, no difference.
I am really at a loss.
What about being stable/beta or being a uitest could make a difference?
Lint Name
uninlined_format_args
Reproducer
I tried this code with
cargo +nightly clippy
:I expected to see this happen (the same warnings produced by
cargo clippy
):Instead, this happened (no warning for the
format
inside the closure)):Version
The text was updated successfully, but these errors were encountered: