about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-07-17 03:58:31 +0200
committerGitHub <noreply@github.com>2025-07-17 03:58:31 +0200
commitfe420b05e39450c35d65fc6cc536e16d84025eb2 (patch)
tree6af02622a74ed2deeb12f5e7d1bb9b13ef83f01b /tests/codegen/src-hash-algorithm
parent83288db888606371dfac6491fc5720d31774aa8c (diff)
parent81a6f189408b71b452a9804818f2cd50d2ed9108 (diff)
downloadrust-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