about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2018-05-21 19:15:00 +0200
committerMichael Woerister <michaelwoerister@posteo>2018-05-22 16:54:08 +0200
commite850d78bcc42d4ef1e2e938f13fde319b37ced9c (patch)
tree2efb815aea6343b4261cf4866db6fa1785f61be3 /src/librustc_data_structures
parenteaa796c8b885c0aecf0c85d8299a3b52cca72370 (diff)
downloadrust-e850d78bcc42d4ef1e2e938f13fde319b37ced9c.tar.gz
rust-e850d78bcc42d4ef1e2e938f13fde319b37ced9c.zip
Remove SortedMap::iter_mut() since that allows to break the element sorting order which lookup relies on.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/sorted_map.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/librustc_data_structures/sorted_map.rs b/src/librustc_data_structures/sorted_map.rs
index c3f462f29c8..fd2bf9272a7 100644
--- a/src/librustc_data_structures/sorted_map.rs
+++ b/src/librustc_data_structures/sorted_map.rs
@@ -142,14 +142,6 @@ impl<K: Ord, V> SortedMap<K, V> {
     }
 
     #[inline]
-    pub fn range_mut<R>(&mut self, range: R) -> &mut [(K, V)]
-        where R: RangeBounds<K>
-    {
-        let (start, end) = self.range_slice_indices(range);
-        (&mut self.data[start .. end])
-    }
-
-    #[inline]
     pub fn remove_range<R>(&mut self, range: R)
         where R: RangeBounds<K>
     {