Files
rust/compiler
Josh Triplett 36662dfc83 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.

Add a test to cover this case.
2022-10-23 00:33:06 +01:00
..
2022-10-18 15:51:23 +11:00
2022-09-29 16:49:04 +09:00
2022-10-17 22:38:37 +01:00
2022-10-21 18:04:00 +08:00
2022-10-20 23:47:49 +02:00
2022-09-29 16:49:04 +09:00
2022-09-29 16:49:04 +09:00
2022-10-17 09:54:24 +01:00
2022-09-26 10:14:45 +02:00