mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
d9acd7d148
Check for exhaustion in RangeInclusive::contains and slicing When a range has finished iteration, `is_empty` returns true, so it should also be the case that `contains` returns false. Fixes #77941.