about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-23 14:48:17 -0700
committerGitHub <noreply@github.com>2022-10-23 14:48:17 -0700
commit9f06fbd1adde356f05c93cf0ea7a0bdebc0256bf (patch)
tree2acad081c92672ce3938fc26210147323e3c7465 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent646e0d370d8e8572e0fbbf9dd0ab6496c4116037 (diff)
parent36662dfc83cb297c21f410eea60deb3ef6d0e940 (diff)
downloadrust-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