rust/library/alloc
Jonas Schievink d9acd7d148
Rollup merge of #78109 - cuviper:exhausted-rangeinc, r=dtolnay
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.
2020-10-24 14:12:01 +02:00
..
benches Rust vec bench import specific rand::RngCore 2020-09-25 22:19:28 +08:00
src Add a spin loop hint for Arc::downgrade 2020-10-23 16:10:56 -03:00
tests Check for exhaustion in SliceIndex for RangeInclusive 2020-10-20 17:18:08 -07:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00