about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorCassaundra Smith <cass@cassaundra.org>2023-01-30 13:39:25 -0800
committerCassaundra Smith <cass@cassaundra.org>2023-01-30 13:39:25 -0800
commit80fcd7c40ec46613b130b5d732162ecbfda6c509 (patch)
tree57f2681328bbd5129ed1fe708f6f9b80e230be5f /compiler/rustc_codegen_llvm/src/errors.rs
parent481725984b4cd94ef5c00917b01c1771b6e5299c (diff)
downloadrust-80fcd7c40ec46613b130b5d732162ecbfda6c509.tar.gz
rust-80fcd7c40ec46613b130b5d732162ecbfda6c509.zip
Fix invalid float literal suggestions when recovering an integer
Only suggest adding a zero to integers with a preceding dot when the change will
result in a valid floating point literal.

For example, `.0x0` should not be turned into `0.0x0`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions