rust/compiler/rustc_infer/src/infer
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
..
canonical Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
lexical_region_resolve Allow SliceIndex to be indexed by ranges. 2025-02-21 16:10:31 -05:00
opaque_types rm unnecessary OpaqueTypeDecl wrapper 2025-01-13 14:33:18 +01:00
outlives Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
region_constraints Move unify_key module. 2025-02-02 17:38:19 +11:00
relate Rustfmt 2025-02-08 22:12:13 +00:00
snapshot Move unify_key module. 2025-02-02 17:38:19 +11:00
at.rs Pass spans around new solver 2025-02-05 18:32:06 +00:00
context.rs Pass spans around new solver 2025-02-05 18:32:06 +00:00
free_regions.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
freshen.rs introduce ty::Value 2025-01-30 17:47:44 +01:00
mod.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
projection.rs Swap Vec<PredicateObligation> to type alias 2024-10-12 15:17:08 +01:00
resolve.rs Remove associated type based effects logic 2024-10-24 09:46:36 +00:00
type_variable.rs clone range in a more obvious way 2024-10-23 22:22:58 +02:00
unify_key.rs Move unify_key module. 2025-02-02 17:38:19 +11:00