diff options
| author | Michael Howell <michael@notriddle.com> | 2022-10-23 14:48:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-23 14:48:17 -0700 |
| commit | 9f06fbd1adde356f05c93cf0ea7a0bdebc0256bf (patch) | |
| tree | 2acad081c92672ce3938fc26210147323e3c7465 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 646e0d370d8e8572e0fbbf9dd0ab6496c4116037 (diff) | |
| parent | 36662dfc83cb297c21f410eea60deb3ef6d0e940 (diff) | |
| download | rust-9f06fbd1adde356f05c93cf0ea7a0bdebc0256bf.tar.gz rust-9f06fbd1adde356f05c93cf0ea7a0bdebc0256bf.zip | |
Rollup merge of #103402 - joshtriplett:niche-wrap-fix, r=oli-obk
Fix wrapped valid-range handling in ty_find_init_error Rust's niche handling allows for wrapping valid ranges with end < start; for instance, a valid range with start=43 and end=41 means a niche of 42. Most places in the compiler handle this correctly, but `ty_find_init_error` assumed that `lo > 0` means the type cannot contain a zero. Fix it to handle wrapping ranges.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
