This commit fixes the crash by removing constant checking from the lint. Closes #3204.
This crate contains Clippy lints. For the main crate, check crates.io or GitHub.