Description
Description
In my projects I upgrade to the latest Rust toolchain quickly after release. It is fairly common to have to work around bugs in clippy as part of this process. From browsing the issue tracker, false positives and bad suggestions tend to get reported in batched when a new stable compiler hits.
Here are some such issues that I have filed or been interested in:
- Add map_err_ignore lint #5998 (comment)
- option_if_let_else suggestion does not compile #6137
- missing_panics_doc triggers on
debug_assert
#6739 - missing_panics_doc is issued for debug_assert! #6970
- False positive in option_if_let_else inside const fn #7567
- Downgrade option_if_let_else to nursery #7568
ptr_as_ptr
does not trigger inside macros #8120- clippy::question_mark lint suggests code that does not compile #8281
no_effect_underscore_binding
fires when ignoring a generic argument #8300- Clippy crash (version 1.59 on macOS) #8470
doc_link_with_quotes
does not ignore code blocks #9321- Lots of
manual_let_else
breakage - Downgrade let_underscore_untyped to restriction #10442
I love that clippy has a wide selection of lints, but the reality is some of them are buggy when they get released. Even if I report a bug the day a stable compiler comes out, it takes at least 12 weeks for fixes to roll out (for fixes to go through a full nightly to beta to stable cycle).
Is there a way to roll out fixes for false positives and bugs in stable clippy more quickly?
I've previously expressed concerns about buggy lints making it to stable in #5998 (comment) where I proposed running new lints through something like a crater run. After thinking about it, I think what I'd actually like to see is bug fixes be released in a more rapid manner than they are today.
I've also previously asked if clippy bugs getting fixes would warrant a point release to the stable Rust toolchain. I'm not sure what the team's thinking on this is.
Version
rustc 1.63.0 (4b91a6ea7 2022-08-08)
binary: rustc
commit-hash: 4b91a6ea7258a947e59c6522cd5898e7c0a6a88f
commit-date: 2022-08-08
host: x86_64-apple-darwin
release: 1.63.0
LLVM version: 14.0.5
Additional Labels
@rustbot label +C-question