to_string_in_format_args
not caught on nightly without --release
#10969
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
Nightly clippy does not produce the expected warning for
to_string_in_format_args
when run locally. However, it does produce the expected error when run in CI in Github Actions or when run with--release
.OS: Ubuntu 20.04.6 LTS in WSL2
Here is the log from github actions installing the nightly rust:
Lint Name
to_string_in_format_args
Reproducer
Here is a minimum reproducible example:
I ran four relevant commands:
cargo clippy
(run locally)cargo +nightly clippy
(run locally)cargo +nightly clippy --release
(run locally)cargo +nightly clippy
run in github actions (see above for rust install log from CI)I expected all three commands to produce the (same) following warning:
Instead, this happened:
cargo clippy
(run locally) -- correctly produced the expected warning.cargo +nightly clippy
(run locally) -- failed to produce the expected warning, instead finishing with no warnings.cargo +nightly clippy --release
(run locally) -- correctly produced the expected warning.cargo +nightly clippy
run in github actions -- DID correctly produce the expected warning -- despite being identical to scenario "2.cargo +nightly clippy
(run locally)" as far as I can tell in every way that matters.Version
The text was updated successfully, but these errors were encountered: