rust/compiler/rustc_lint
Michael Howell 9f06fbd1ad
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.
2022-10-23 14:48:17 -07:00
..
src Rollup merge of #103402 - joshtriplett:niche-wrap-fix, r=oli-obk 2022-10-23 14:48:17 -07:00
Cargo.toml Update unicode-rs crates to Unicode 15 2022-09-17 01:55:56 +08:00