diff options
author | Josh Stone <jistone@redhat.com> | 2017-04-20 13:50:47 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2017-04-20 21:16:31 -0700 |
commit | df86cecdd2ca927110c48c97227a62d1d0c8f7ce (patch) | |
tree | 0dc0df348137158627f1237e79a27fa0117f0e85 | |
parent | a724ff90e744c782e425e634defbf143b8ef62b9 (diff) | |
download | rust-df86cecdd2ca927110c48c97227a62d1d0c8f7ce.tar.gz |
Remove OccupiedEntry::remove_pair
[unstable, deprecated since 1.12.0]
-rw-r--r-- | src/doc/unstable-book/src/SUMMARY.md | 1 | ||||
-rw-r--r-- | src/doc/unstable-book/src/library-features/map-entry-recover-keys.md | 5 | ||||
-rw-r--r-- | src/libcollections/btree/map.rs | 7 | ||||
-rw-r--r-- | src/libstd/collections/hash/map.rs | 7 |
4 files changed, 0 insertions, 20 deletions
diff --git a/src/doc/unstable-book/src/SUMMARY.md b/src/doc/unstable-book/src/SUMMARY.md index 4951ff7965a..0d5aa4b5c42 100644 --- a/src/doc/unstable-book/src/SUMMARY.md +++ b/src/doc/unstable-book/src/SUMMARY.md @@ -163,7 +163,6 @@ - [linked_list_extras](library-features/linked-list-extras.md) - [lookup_host](library-features/lookup-host.md) - [manually_drop](library-features/manually-drop.md) - - [map_entry_recover_keys](library-features/map-entry-recover-keys.md) - [mpsc_select](library-features/mpsc-select.md) - [n16](library-features/n16.md) - [never_type_impls](library-features/never-type-impls.md) diff --git a/src/doc/unstable-book/src/library-features/map-entry-recover-keys.md b/src/doc/unstable-book/src/library-features/map-entry-recover-keys.md deleted file mode 100644 index 2d15aa0e90d..00000000000 --- a/src/doc/unstable-book/src/library-features/map-entry-recover-keys.md +++ /dev/null @@ -1,5 +0,0 @@ -# `map_entry_recover_keys` - -The tracking issue for this feature is: [#34285] - -[#34285]: https://github.com/rust-lang/rust/issues/34285 diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs index fb0b852d102..885b97dda81 100644 --- a/src/libcollections/btree/map.rs +++ b/src/libcollections/btree/map.rs @@ -2217,13 +2217,6 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> { self.handle.reborrow().into_kv().0 } - /// Deprecated, renamed to `remove_entry` - #[unstable(feature = "map_entry_recover_keys", issue = "34285")] - #[rustc_deprecated(since = "1.12.0", reason = "renamed to `remove_entry`")] - pub fn remove_pair(self) -> (K, V) { - self.remove_entry() - } - /// Take ownership of the key and value from the map. /// /// # Examples diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index eacb59d375a..c8732e68c85 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -2017,13 +2017,6 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> { self.elem.read().0 } - /// Deprecated, renamed to `remove_entry` - #[unstable(feature = "map_entry_recover_keys", issue = "34285")] - #[rustc_deprecated(since = "1.12.0", reason = "renamed to `remove_entry`")] - pub fn remove_pair(self) -> (K, V) { - self.remove_entry() - } - /// Take the ownership of the key and value from the map. /// /// # Examples |