Skip to content

Commit eddd4f0

Browse files
committed
Add tracking issue for map_try_insert.
1 parent 1aedb4c commit eddd4f0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

library/alloc/src/collections/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ impl<K, V> BTreeMap<K, V> {
859859
/// assert_eq!(err.entry.get(), &"a");
860860
/// assert_eq!(err.value, "b");
861861
/// ```
862-
#[unstable(feature = "map_try_insert", issue = "none")]
862+
#[unstable(feature = "map_try_insert", issue = "82766")]
863863
pub fn try_insert(&mut self, key: K, value: V) -> Result<&mut V, OccupiedError<'_, K, V>>
864864
where
865865
K: Ord,

library/alloc/src/collections/btree/map/entry.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ impl<K: Debug + Ord, V: Debug> Debug for OccupiedEntry<'_, K, V> {
7474
/// The error returned by [`try_insert`](BTreeMap::try_insert) when the key already exists.
7575
///
7676
/// Contains the occupied entry, and the value that was not inserted.
77-
#[unstable(feature = "map_try_insert", issue = "none")]
77+
#[unstable(feature = "map_try_insert", issue = "82766")]
7878
pub struct OccupiedError<'a, K: 'a, V: 'a> {
7979
/// The entry in the map that was already occupied.
8080
pub entry: OccupiedEntry<'a, K, V>,
8181
/// The value which was not inserted, because the entry was already occupied.
8282
pub value: V,
8383
}
8484

85-
#[unstable(feature = "map_try_insert", issue = "none")]
85+
#[unstable(feature = "map_try_insert", issue = "82766")]
8686
impl<K: Debug + Ord, V: Debug> Debug for OccupiedError<'_, K, V> {
8787
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
8888
f.debug_struct("OccupiedError")
@@ -93,7 +93,7 @@ impl<K: Debug + Ord, V: Debug> Debug for OccupiedError<'_, K, V> {
9393
}
9494
}
9595

96-
#[unstable(feature = "map_try_insert", issue = "none")]
96+
#[unstable(feature = "map_try_insert", issue = "82766")]
9797
impl<'a, K: Debug + Ord, V: Debug> fmt::Display for OccupiedError<'a, K, V> {
9898
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9999
write!(

library/std/src/collections/hash/map.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ where
867867
/// assert_eq!(err.entry.get(), &"a");
868868
/// assert_eq!(err.value, "b");
869869
/// ```
870-
#[unstable(feature = "map_try_insert", issue = "none")]
870+
#[unstable(feature = "map_try_insert", issue = "82766")]
871871
pub fn try_insert(&mut self, key: K, value: V) -> Result<&mut V, OccupiedError<'_, K, V>> {
872872
match self.entry(key) {
873873
Occupied(entry) => Err(OccupiedError { entry, value }),
@@ -1887,15 +1887,15 @@ impl<K: Debug, V> Debug for VacantEntry<'_, K, V> {
18871887
/// The error returned by [`try_insert`](HashMap::try_insert) when the key already exists.
18881888
///
18891889
/// Contains the occupied entry, and the value that was not inserted.
1890-
#[unstable(feature = "map_try_insert", issue = "none")]
1890+
#[unstable(feature = "map_try_insert", issue = "82766")]
18911891
pub struct OccupiedError<'a, K: 'a, V: 'a> {
18921892
/// The entry in the map that was already occupied.
18931893
pub entry: OccupiedEntry<'a, K, V>,
18941894
/// The value which was not inserted, because the entry was already occupied.
18951895
pub value: V,
18961896
}
18971897

1898-
#[unstable(feature = "map_try_insert", issue = "none")]
1898+
#[unstable(feature = "map_try_insert", issue = "82766")]
18991899
impl<K: Debug, V: Debug> Debug for OccupiedError<'_, K, V> {
19001900
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
19011901
f.debug_struct("OccupiedError")
@@ -1906,7 +1906,7 @@ impl<K: Debug, V: Debug> Debug for OccupiedError<'_, K, V> {
19061906
}
19071907
}
19081908

1909-
#[unstable(feature = "map_try_insert", issue = "none")]
1909+
#[unstable(feature = "map_try_insert", issue = "82766")]
19101910
impl<'a, K: Debug, V: Debug> fmt::Display for OccupiedError<'a, K, V> {
19111911
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
19121912
write!(

library/std/src/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl Error for char::DecodeUtf16Error {
470470
}
471471
}
472472

473-
#[unstable(feature = "map_try_insert", issue = "none")]
473+
#[unstable(feature = "map_try_insert", issue = "82766")]
474474
impl<'a, K: Debug + Ord, V: Debug> Error
475475
for crate::collections::btree_map::OccupiedError<'a, K, V>
476476
{
@@ -480,7 +480,7 @@ impl<'a, K: Debug + Ord, V: Debug> Error
480480
}
481481
}
482482

483-
#[unstable(feature = "map_try_insert", issue = "none")]
483+
#[unstable(feature = "map_try_insert", issue = "82766")]
484484
impl<'a, K: Debug, V: Debug> Error for crate::collections::hash_map::OccupiedError<'a, K, V> {
485485
#[allow(deprecated)]
486486
fn description(&self) -> &str {

0 commit comments

Comments
 (0)