diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-07-17 03:58:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-17 03:58:31 +0200 |
| commit | fe420b05e39450c35d65fc6cc536e16d84025eb2 (patch) | |
| tree | 6af02622a74ed2deeb12f5e7d1bb9b13ef83f01b /tests/codegen/src-hash-algorithm | |
| parent | 83288db888606371dfac6491fc5720d31774aa8c (diff) | |
| parent | 81a6f189408b71b452a9804818f2cd50d2ed9108 (diff) | |
| download | rust-fe420b05e39450c35d65fc6cc536e16d84025eb2.tar.gz rust-fe420b05e39450c35d65fc6cc536e16d84025eb2.zip | |
Rollup merge of #143678 - Kivooeo:char-overflow, r=SparrowLii
Added error for invalid char cast
fixes rust-lang/rust#143597
not really sure if I did it right, but according to cast-char test -- it is right, also this code gave me false positive result
```
for _ in 0..(256 as u8) {}
```
so this is why I added this check `if lit_val <= 0xFF`
Also I believe that error message could be improved, but I'm not sure how exactly
cc ```@hkBst```
r? compiler
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
