Skip to content

Commit e850d78

Browse files
Remove SortedMap::iter_mut() since that allows to break the element sorting order which lookup relies on.
1 parent eaa796c commit e850d78

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/librustc_data_structures/sorted_map.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,6 @@ impl<K: Ord, V> SortedMap<K, V> {
141141
(&self.data[start .. end])
142142
}
143143

144-
#[inline]
145-
pub fn range_mut<R>(&mut self, range: R) -> &mut [(K, V)]
146-
where R: RangeBounds<K>
147-
{
148-
let (start, end) = self.range_slice_indices(range);
149-
(&mut self.data[start .. end])
150-
}
151-
152144
#[inline]
153145
pub fn remove_range<R>(&mut self, range: R)
154146
where R: RangeBounds<K>

0 commit comments

Comments
 (0)