rust-clippy/clippy_config/src
bors cebf879de8 Auto merge of #12312 - pitaj:legacy_numeric_constants, r=xFrednet
new lint `legacy_numeric_constants`

Rework of #10997

- uses diagnostic items
- does not lint imports of the float modules (`use std::f32`)
- does not lint usage of float constants that look like `f32::MIN`

I chose to make the float changes because the following pattern is actually pretty useful
```rust
use std::f32;
let omega = freq * 2 * f32::consts::PI;
```
and the float modules are not TBD-deprecated like the integer modules.

Closes #10995

---

changelog: New lint [`legacy_numeric_constants`]
[#12312](https://github.com/rust-lang/rust-clippy/pull/12312)
2024-03-30 17:50:36 +00:00
..
conf.rs new lint legacy_numeric_constants 2024-03-21 17:10:02 -06:00
lib.rs Enable unused_qualifications lint 2024-03-22 15:58:29 +00:00
metadata.rs Alphabetize configuration options and lints in Clippy doc 2024-02-26 14:55:45 -06:00
msrvs.rs new lint legacy_numeric_constants 2024-03-21 17:10:02 -06:00
types.rs Merge commit '66c29b973b3b10278bd39f4e26b08522a379c2c9' into clippy-subtree-update 2024-01-25 19:17:36 +01:00