diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-03-04 16:54:28 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-03-04 16:54:28 +0100 |
| commit | eddd4f05012ed9ebefa6e2e5ca91da4116d30996 (patch) | |
| tree | dc87e9168f0bbbb16ec3287c992b0b924f8272d3 /library/alloc/src | |
| parent | 1aedb4c3a38b099a127c3fd3815400b3d0098475 (diff) | |
| download | rust-eddd4f05012ed9ebefa6e2e5ca91da4116d30996.tar.gz rust-eddd4f05012ed9ebefa6e2e5ca91da4116d30996.zip | |
Add tracking issue for map_try_insert.
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/collections/btree/map.rs | 2 | ||||
| -rw-r--r-- | library/alloc/src/collections/btree/map/entry.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index 12a7322d8e7..622983996aa 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -859,7 +859,7 @@ impl<K, V> BTreeMap<K, V> { /// assert_eq!(err.entry.get(), &"a"); /// assert_eq!(err.value, "b"); /// ``` - #[unstable(feature = "map_try_insert", issue = "none")] + #[unstable(feature = "map_try_insert", issue = "82766")] pub fn try_insert(&mut self, key: K, value: V) -> Result<&mut V, OccupiedError<'_, K, V>> where K: Ord, diff --git a/library/alloc/src/collections/btree/map/entry.rs b/library/alloc/src/collections/btree/map/entry.rs index a5ece31d67b..6b30d959773 100644 --- a/library/alloc/src/collections/btree/map/entry.rs +++ b/library/alloc/src/collections/btree/map/entry.rs @@ -74,7 +74,7 @@ impl<K: Debug + Ord, V: Debug> Debug for OccupiedEntry<'_, K, V> { /// The error returned by [`try_insert`](BTreeMap::try_insert) when the key already exists. /// /// Contains the occupied entry, and the value that was not inserted. -#[unstable(feature = "map_try_insert", issue = "none")] +#[unstable(feature = "map_try_insert", issue = "82766")] pub struct OccupiedError<'a, K: 'a, V: 'a> { /// The entry in the map that was already occupied. pub entry: OccupiedEntry<'a, K, V>, @@ -82,7 +82,7 @@ pub struct OccupiedError<'a, K: 'a, V: 'a> { pub value: V, } -#[unstable(feature = "map_try_insert", issue = "none")] +#[unstable(feature = "map_try_insert", issue = "82766")] impl<K: Debug + Ord, V: Debug> Debug for OccupiedError<'_, K, V> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("OccupiedError") @@ -93,7 +93,7 @@ impl<K: Debug + Ord, V: Debug> Debug for OccupiedError<'_, K, V> { } } -#[unstable(feature = "map_try_insert", issue = "none")] +#[unstable(feature = "map_try_insert", issue = "82766")] impl<'a, K: Debug + Ord, V: Debug> fmt::Display for OccupiedError<'a, K, V> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!( |
