about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-31 00:03:08 +0000
committerbors <bors@rust-lang.org>2023-01-31 00:03:08 +0000
commit487e83b711b96d84ce2edfc4cb4ba792c10b589e (patch)
tree6e79e3ff2f39930c60e7b1758d9ed8b4f3d6864c /compiler/rustc_codegen_llvm/src/errors.rs
parent001a77fac33f6560ff361ff38f661ff5f1c6bf85 (diff)
parent80fcd7c40ec46613b130b5d732162ecbfda6c509 (diff)
downloadrust-487e83b711b96d84ce2edfc4cb4ba792c10b589e.tar.gz
rust-487e83b711b96d84ce2edfc4cb4ba792c10b589e.zip
Auto merge of #105650 - cassaundra:float-literal-suggestion, r=pnkfelix
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`.

r? nnethercote
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions