about summary refs log tree commit diff
path: root/compiler/rustc_index/src/slice.rs
AgeCommit message (Collapse)AuthorLines
2025-04-15Add `copy_within` to `IndexSlice`Jason Newcomb-1/+12
2025-03-12Rollup merge of #138372 - Eclips4:issue-138196, r=scottmcmMatthias Krüger-15/+20
Refactor `pick2_mut` & `pick3_mut` to use `get_disjoint_mut` Closes #138196
2025-03-12Make panic's more specificKirill Podoprigora-10/+13
2025-03-11Refactor pick2_mut & pick3_mut to use get_disjoint_mutKirill Podoprigora-8/+10
2025-02-28Allow the optimizer to elide bounds checks when enumerating ↵Jason Newcomb-0/+6
`IndexSlice`/`IndecVec`.
2025-02-24Rollup merge of #136610 - Jarcho:range_idx, r=NoratriebJacob Pratt-13/+20
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-22Greatly simplify lifetime captures in edition 2024Michael Goulet-4/+2
2025-02-21Allow SliceIndex to be indexed by ranges.Jason Newcomb-13/+20
2024-09-17assert that unexpectedly unsized fields are sized in the param envLukas Markeffsky-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-6/+3
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2023-04-24`const`-ify some `{IndexVec, IndexSlice}` methodsMaybe Waffle-9/+9
2023-04-24move index code aroundMaybe Waffle-34/+35
2023-04-24Split `{Idx, IndexVec, IndexSlice}` into their own modulesMaybe Waffle-0/+255