Remove OccupiedEntry::remove_pair
[unstable, deprecated since 1.12.0]
This commit is contained in:
parent
a724ff90e7
commit
df86cecdd2
4 changed files with 0 additions and 20 deletions
|
@ -163,7 +163,6 @@
|
||||||
- [linked_list_extras](library-features/linked-list-extras.md)
|
- [linked_list_extras](library-features/linked-list-extras.md)
|
||||||
- [lookup_host](library-features/lookup-host.md)
|
- [lookup_host](library-features/lookup-host.md)
|
||||||
- [manually_drop](library-features/manually-drop.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)
|
- [mpsc_select](library-features/mpsc-select.md)
|
||||||
- [n16](library-features/n16.md)
|
- [n16](library-features/n16.md)
|
||||||
- [never_type_impls](library-features/never-type-impls.md)
|
- [never_type_impls](library-features/never-type-impls.md)
|
||||||
|
|
|
@ -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
|
|
|
@ -2217,13 +2217,6 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> {
|
||||||
self.handle.reborrow().into_kv().0
|
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.
|
/// Take ownership of the key and value from the map.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
|
|
|
@ -2017,13 +2017,6 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
|
||||||
self.elem.read().0
|
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.
|
/// Take the ownership of the key and value from the map.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue