diff options
| author | bors <bors@rust-lang.org> | 2025-01-01 10:54:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-01-01 10:54:12 +0000 |
| commit | eeeff9a66cda13934600800eee40fd84ba1647eb (patch) | |
| tree | 0e616d296f4eb9fdd59852e22f4e04c838a31867 /tests/ui/track-diagnostics | |
| parent | bc3e3015b6e449bf1607f1023d2fbc2838ee37af (diff) | |
| parent | aa685bcccaa8fdb187e68de29f35db11aa99630f (diff) | |
| download | rust-eeeff9a66cda13934600800eee40fd84ba1647eb.tar.gz rust-eeeff9a66cda13934600800eee40fd84ba1647eb.zip | |
Auto merge of #134969 - Marcondiro:master, r=jhpratt,programmerjake
char to_digit: avoid unnecessary casts to u64 Hello, in the `char::to_digit` method there are a few `as u64` casts that are not strictly necessary. I assume that the reason behind these casts is to avoid possible overflows in the `+ 10` add. This PR removes the aforementioned casts, avoiding the overflow issue by slightly modifying the ASCII letter to int mapping. Thanks, Happy new year.
Diffstat (limited to 'tests/ui/track-diagnostics')
0 files changed, 0 insertions, 0 deletions
