about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlejandra González <blyxyas@gmail.com>2025-07-12 13:57:16 +0000
committerGitHub <noreply@github.com>2025-07-12 13:57:16 +0000
commit7e2d26f4b29f316dd049750b35f9004bb43aece7 (patch)
tree24b58493876f131abdc6c19bc8e06c1d61c10ce7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent3c3ee9bddbab942ed4eb6af585cfc6f2fd755753 (diff)
parent093b6e5de9038371dd2aa6e990f9fb6fde970ccd (diff)
downloadrust-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