about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorgoth-turtle <93494392+goth-turtle@users.noreply.github.com>2022-04-24 15:06:48 +0200
committergoth-turtle <93494392+goth-turtle@users.noreply.github.com>2022-04-24 15:28:36 +0200
commitb4a50e9ee5adda55ad68b0dc637433fa0936e10e (patch)
tree23f127646e39fd8fbbc54929834454fa8cd3bfb5 /compiler/rustc_codegen_llvm/src
parentf2902494614643509685c3bf974287ac9844b2fd (diff)
downloadrust-b4a50e9ee5adda55ad68b0dc637433fa0936e10e.tar.gz
rust-b4a50e9ee5adda55ad68b0dc637433fa0936e10e.zip
mistyped_literal_suffixes: ignore floats without exponent
Previously this lint would only look at the integer part of floating
point literals without an exponent, giving wrong suggestions like:

```
  |
8 |     let _ = 123_32.123;
  |             ^^^^^^^^^^ help: did you mean to write: `123.123_f32`
  |
```

Instead, it now ignores these literals.
Fixes #6129
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions