Skip to content

Commit

Permalink
Add a hash_set_entry tracking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 16, 2019
1 parent 5f93834 commit 5e2c9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/collections/hash/set.rs
Expand Up @@ -635,7 +635,7 @@ impl<T, S> HashSet<T, S>
/// assert_eq!(set.len(), 4); // 100 was inserted
/// ```
#[inline]
#[unstable(feature = "hash_set_entry", issue = "0")]
#[unstable(feature = "hash_set_entry", issue = "60896")]
pub fn get_or_insert(&mut self, value: T) -> &T {
self.map.raw_entry_mut().from_key(&value).or_insert(value, ()).0
}
Expand All @@ -661,7 +661,7 @@ impl<T, S> HashSet<T, S>
/// assert_eq!(set.len(), 4); // a new "fish" was inserted
/// ```
#[inline]
#[unstable(feature = "hash_set_entry", issue = "0")]
#[unstable(feature = "hash_set_entry", issue = "60896")]
pub fn get_or_insert_with<Q: ?Sized, F>(&mut self, value: &Q, f: F) -> &T
where T: Borrow<Q>,
Q: Hash + Eq,
Expand Down

0 comments on commit 5e2c9d3

Please sign in to comment.