Files
rust/compiler/rustc_lint/src
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-23 10:09:44 +02:00
2022-10-06 15:49:44 +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-06 15:49:44 +11:00
2022-10-01 10:03:06 +00:00
2022-10-09 13:07:21 +00: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-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2021-07-08 17:14:28 +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