mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
7e417d4cbd
3353: float support added for mistyped_literal_suffixes lint r=mikerite a=Maxgy I implemented the mistyped_literal_suffixes lint for float literals. ``` #![allow(unused_variables)] fn main() { let x = 1E2_32; let x = 75.22_64; } ``` Given the above, the additional check suggests the variables to be written as `let x = 1E2_f32` and `let x = 75.22_f64`. Fixes #3167 Co-authored-by: Maxwell Anderson <maxwell.brayden.anderson@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |