decimal_bitwise_operands, manual_ilog2 and ptr_offset_by_literal are unknown lints
Description
3 lints seems to be in the list of clippy lints but current clippy does not know about it
https://rust-lang.github.io/rust-clippy/master/index.html?groups=cargo%2Ccomplexity%2Ccorrectness%2Cnursery%2Cpedantic%2Cperf%2Crestriction%2Cstyle%2Csuspicious%2Cdeprecated
Cargo.toml [workspace.lints.clippy] decimal_bitwise_operands = { level = "deny", priority = 0 } manual_ilog2 = { level = "deny", priority = 0 } ptr_offset_by_literal = { level = "deny", priority = 0 }
rustc --version rustc 1.93.0-nightly (646a3f8c1 2025-12-02)
cargo clippy --version clippy 0.1.93 (646a3f8c15 2025-12-02)
cargo clippy
error[E0602]: unknown lint: clippy::ptr_offset_by_literal
error[E0602]: unknown lint: clippy::manual_ilog2
error[E0602]: unknown lint: clippy::decimal_bitwise_operands
Version
Additional Labels
No response
Confirmed on latest stable (1.91.1), cargo clippy command is not aware about its own lints.
These three lints are very new. All of them were merged in the past week: #15865, #15606, #15215.
The main rust-lang/rust repo will periodically sync with the clippy repo. Once that is done, the clippy lint will become available on nightly rust.
The previous time this was done is https://github.com/rust-lang/rust/pull/149425
These three lints are very new. All of them were merged in the past week: #15865, #15606, #15215.
The main rust-lang/rust repo will periodically sync with the clippy repo. Once that is done, the clippy lint will become available on nightly rust.
The previous time this was done is rust-lang/rust#149425
Are there any alternative sources of clippy lints information that would accurately match the lints supported by the current version of clippy? I discovered this when I was writing a test that checks whether a Cargo.toml in my project has all the lints or not
You can choose which version of clippy to check from the list at https://rust-lang.github.io/rust-clippy/ but I don't think you can get the latest information for nightly rust.
It's a very bad idea to blindly enable all lints though. Some lints are meant for really specific situations, and some of those lints will even actively contradict each other.
clippy-driver -W help can be used to list all the lints of the current toolchain