Files
rust/compiler
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
..
2022-10-18 15:51:23 +11:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-21 18:04:00 +08:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-09-29 16:49:04 +09:00
2022-09-29 16:49:04 +09:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-09-26 10:14:45 +02:00
2022-10-23 10:09:44 +02:00