diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-02-21 16:01:19 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2025-02-21 16:10:31 -0500 |
| commit | 162fb713ac66fef8f6a1d14bae9d1d4b35f76411 (patch) | |
| tree | 33ef24f64b9607373c6eb6a9686e39797f96dbfe /compiler/rustc_data_structures/src | |
| parent | a74f3fb5fc955fe3876fa206ce2146cd355e1bb5 (diff) | |
| download | rust-162fb713ac66fef8f6a1d14bae9d1d4b35f76411.tar.gz rust-162fb713ac66fef8f6a1d14bae9d1d4b35f76411.zip | |
Allow SliceIndex to be indexed by ranges.
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/sorted_map/index_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sorted_map/index_map.rs b/compiler/rustc_data_structures/src/sorted_map/index_map.rs index e9a5fb51975..278b3a9270c 100644 --- a/compiler/rustc_data_structures/src/sorted_map/index_map.rs +++ b/compiler/rustc_data_structures/src/sorted_map/index_map.rs @@ -147,7 +147,7 @@ impl<I: Idx, K: Ord, V> FromIterator<(K, V)> for SortedIndexMultiMap<I, K, V> { where J: IntoIterator<Item = (K, V)>, { - let items = IndexVec::from_iter(iter); + let items = IndexVec::<I, _>::from_iter(iter); let mut idx_sorted_by_item_key: Vec<_> = items.indices().collect(); // `sort_by_key` is stable, so insertion order is preserved for duplicate items. |
