diff options
| author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-11-05 03:58:15 +0000 |
|---|---|---|
| committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-11-05 03:58:15 +0000 |
| commit | 7e417d4cbd4c254792b6fb7bb0c13896f9ff42e7 (patch) | |
| tree | 583ae2a30c49bed0a19b79dad0bab01aede98795 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff | |
| parent | d8b426901a75b1eb975f52b4537f2736f2b94436 (diff) | |
| parent | 3e0de1745d643d78dcc7e10ec81720dcae1ba4fe (diff) | |
| download | rust-7e417d4cbd4c254792b6fb7bb0c13896f9ff42e7.tar.gz rust-7e417d4cbd4c254792b6fb7bb0c13896f9ff42e7.zip | |
Merge #3353
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>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions
