diff options
| author | Alejandra González <blyxyas@gmail.com> | 2025-07-12 13:57:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-12 13:57:16 +0000 |
| commit | 7e2d26f4b29f316dd049750b35f9004bb43aece7 (patch) | |
| tree | 24b58493876f131abdc6c19bc8e06c1d61c10ce7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 3c3ee9bddbab942ed4eb6af585cfc6f2fd755753 (diff) | |
| parent | 093b6e5de9038371dd2aa6e990f9fb6fde970ccd (diff) | |
| download | rust-7e2d26f4b29f316dd049750b35f9004bb43aece7.tar.gz rust-7e2d26f4b29f316dd049750b35f9004bb43aece7.zip | |
Fix `approx_const` for some new cases (#15236)
Fix some cases for `approx_const`: - When the literal has more digits than significant ones, the string comparison wasn't working - When numbers are formatted in a non trivial way (with leading `0`s or using `_`) the lint now finds those cases changelog: [`approx_const`]: Fix when used over overly precise literals and non trivially formatted numerals Fixes rust-lang/rust-clippy#15194
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
