rust/compiler/rustc_index/src
Jacob Pratt 6aa015ae9d
Rollup merge of #136610 - Jarcho:range_idx, r=Noratrieb
Allow `IndexSlice` to be indexed by ranges.

This comes with some annoyances as the index type can no longer inferred from indexing expressions. The biggest offender for this is `IndexVec::from_fn_n(|idx| ..., n)` where the index type won't be inferred from the call site or any index expressions inside the closure.

My main use case for this is mapping a `Place` to `Range<Idx>` for value tracking where the range represents all the values the place contains.
2025-02-24 02:11:32 -05:00
..
bit_set Rustfmt 2025-02-08 22:12:13 +00:00
interval correct the test if IntervalSet 2022-06-08 22:44:26 +08:00
vec Rustfmt 2025-02-08 22:12:13 +00:00
bit_set.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
idx.rs Allow SliceIndex to be indexed by ranges. 2025-02-21 16:10:31 -05:00
interval.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
lib.rs Allow SliceIndex to be indexed by ranges. 2025-02-21 16:10:31 -05:00
slice.rs Rollup merge of #136610 - Jarcho:range_idx, r=Noratrieb 2025-02-24 02:11:32 -05:00
vec.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00