Skip to content

Commit dd7cc2f

Browse files
cuvipergitbot
authored and
gitbot
committed
Add a tracking issue for btree_set_entry
1 parent ac0f512 commit dd7cc2f

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

alloc/src/collections/btree/set.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::vec::Vec;
1515

1616
mod entry;
1717

18-
#[unstable(feature = "btree_set_entry", issue = "none")]
18+
#[unstable(feature = "btree_set_entry", issue = "133549")]
1919
pub use self::entry::{Entry, OccupiedEntry, VacantEntry};
2020

2121
/// An ordered set based on a B-Tree.
@@ -950,7 +950,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
950950
/// assert_eq!(set.len(), 4); // 100 was inserted
951951
/// ```
952952
#[inline]
953-
#[unstable(feature = "btree_set_entry", issue = "none")]
953+
#[unstable(feature = "btree_set_entry", issue = "133549")]
954954
pub fn get_or_insert(&mut self, value: T) -> &T
955955
where
956956
T: Ord,
@@ -979,7 +979,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
979979
/// assert_eq!(set.len(), 4); // a new "fish" was inserted
980980
/// ```
981981
#[inline]
982-
#[unstable(feature = "btree_set_entry", issue = "none")]
982+
#[unstable(feature = "btree_set_entry", issue = "133549")]
983983
pub fn get_or_insert_with<Q: ?Sized, F>(&mut self, value: &Q, f: F) -> &T
984984
where
985985
T: Borrow<Q> + Ord,
@@ -995,7 +995,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
995995
///
996996
/// TODO
997997
#[inline]
998-
#[unstable(feature = "btree_set_entry", issue = "none")]
998+
#[unstable(feature = "btree_set_entry", issue = "133549")]
999999
pub fn entry(&mut self, value: T) -> Entry<'_, T, A>
10001000
where
10011001
T: Ord,

alloc/src/collections/btree/set/entry.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use crate::alloc::{Allocator, Global};
3838
/// println!("Our BTreeSet: {:?}", set);
3939
/// assert!(set.iter().eq(&["a", "b", "c", "d", "e"]));
4040
/// ```
41-
#[unstable(feature = "btree_set_entry", issue = "none")]
41+
#[unstable(feature = "btree_set_entry", issue = "133549")]
4242
pub enum Entry<
4343
'a,
4444
T,
@@ -60,7 +60,7 @@ pub enum Entry<
6060
/// Entry::Occupied(_) => { }
6161
/// }
6262
/// ```
63-
#[unstable(feature = "btree_set_entry", issue = "none")]
63+
#[unstable(feature = "btree_set_entry", issue = "133549")]
6464
Occupied(OccupiedEntry<'a, T, A>),
6565

6666
/// A vacant entry.
@@ -79,11 +79,11 @@ pub enum Entry<
7979
/// Entry::Vacant(_) => { }
8080
/// }
8181
/// ```
82-
#[unstable(feature = "btree_set_entry", issue = "none")]
82+
#[unstable(feature = "btree_set_entry", issue = "133549")]
8383
Vacant(VacantEntry<'a, T, A>),
8484
}
8585

86-
#[unstable(feature = "btree_set_entry", issue = "none")]
86+
#[unstable(feature = "btree_set_entry", issue = "133549")]
8787
impl<T: Debug + Ord, A: Allocator + Clone> Debug for Entry<'_, T, A> {
8888
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
8989
match *self {
@@ -129,7 +129,7 @@ impl<T: Debug + Ord, A: Allocator + Clone> Debug for Entry<'_, T, A> {
129129
/// assert_eq!(set.get(&"c"), None);
130130
/// assert_eq!(set.len(), 2);
131131
/// ```
132-
#[unstable(feature = "btree_set_entry", issue = "none")]
132+
#[unstable(feature = "btree_set_entry", issue = "133549")]
133133
pub struct OccupiedEntry<
134134
'a,
135135
T,
@@ -138,7 +138,7 @@ pub struct OccupiedEntry<
138138
pub(super) inner: map::OccupiedEntry<'a, T, SetValZST, A>,
139139
}
140140

141-
#[unstable(feature = "btree_set_entry", issue = "none")]
141+
#[unstable(feature = "btree_set_entry", issue = "133549")]
142142
impl<T: Debug + Ord, A: Allocator + Clone> Debug for OccupiedEntry<'_, T, A> {
143143
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
144144
f.debug_struct("OccupiedEntry").field("value", self.get()).finish()
@@ -171,7 +171,7 @@ impl<T: Debug + Ord, A: Allocator + Clone> Debug for OccupiedEntry<'_, T, A> {
171171
/// }
172172
/// assert!(set.contains("b") && set.len() == 2);
173173
/// ```
174-
#[unstable(feature = "btree_set_entry", issue = "none")]
174+
#[unstable(feature = "btree_set_entry", issue = "133549")]
175175
pub struct VacantEntry<
176176
'a,
177177
T,
@@ -180,7 +180,7 @@ pub struct VacantEntry<
180180
pub(super) inner: map::VacantEntry<'a, T, SetValZST, A>,
181181
}
182182

183-
#[unstable(feature = "btree_set_entry", issue = "none")]
183+
#[unstable(feature = "btree_set_entry", issue = "133549")]
184184
impl<T: Debug + Ord, A: Allocator + Clone> Debug for VacantEntry<'_, T, A> {
185185
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
186186
f.debug_tuple("VacantEntry").field(self.get()).finish()
@@ -203,7 +203,7 @@ impl<'a, T: Ord, A: Allocator + Clone> Entry<'a, T, A> {
203203
/// assert_eq!(entry.get(), &"horseyland");
204204
/// ```
205205
#[inline]
206-
#[unstable(feature = "btree_set_entry", issue = "none")]
206+
#[unstable(feature = "btree_set_entry", issue = "133549")]
207207
pub fn insert(self) -> OccupiedEntry<'a, T, A> {
208208
match self {
209209
Occupied(entry) => entry,
@@ -232,7 +232,7 @@ impl<'a, T: Ord, A: Allocator + Clone> Entry<'a, T, A> {
232232
/// assert_eq!(set.len(), 1);
233233
/// ```
234234
#[inline]
235-
#[unstable(feature = "btree_set_entry", issue = "none")]
235+
#[unstable(feature = "btree_set_entry", issue = "133549")]
236236
pub fn or_insert(self) {
237237
if let Vacant(entry) = self {
238238
entry.insert();
@@ -257,7 +257,7 @@ impl<'a, T: Ord, A: Allocator + Clone> Entry<'a, T, A> {
257257
/// assert_eq!(set.entry("horseland").get(), &"horseland");
258258
/// ```
259259
#[inline]
260-
#[unstable(feature = "btree_set_entry", issue = "none")]
260+
#[unstable(feature = "btree_set_entry", issue = "133549")]
261261
pub fn get(&self) -> &T {
262262
match *self {
263263
Occupied(ref entry) => entry.get(),
@@ -285,7 +285,7 @@ impl<'a, T: Ord, A: Allocator + Clone> OccupiedEntry<'a, T, A> {
285285
/// }
286286
/// ```
287287
#[inline]
288-
#[unstable(feature = "btree_set_entry", issue = "none")]
288+
#[unstable(feature = "btree_set_entry", issue = "133549")]
289289
pub fn get(&self) -> &T {
290290
self.inner.key()
291291
}
@@ -310,7 +310,7 @@ impl<'a, T: Ord, A: Allocator + Clone> OccupiedEntry<'a, T, A> {
310310
/// assert_eq!(set.contains("poneyland"), false);
311311
/// ```
312312
#[inline]
313-
#[unstable(feature = "btree_set_entry", issue = "none")]
313+
#[unstable(feature = "btree_set_entry", issue = "133549")]
314314
pub fn remove(self) -> T {
315315
self.inner.remove_entry().0
316316
}
@@ -331,7 +331,7 @@ impl<'a, T: Ord, A: Allocator + Clone> VacantEntry<'a, T, A> {
331331
/// assert_eq!(set.entry("poneyland").get(), &"poneyland");
332332
/// ```
333333
#[inline]
334-
#[unstable(feature = "btree_set_entry", issue = "none")]
334+
#[unstable(feature = "btree_set_entry", issue = "133549")]
335335
pub fn get(&self) -> &T {
336336
self.inner.key()
337337
}
@@ -353,7 +353,7 @@ impl<'a, T: Ord, A: Allocator + Clone> VacantEntry<'a, T, A> {
353353
/// }
354354
/// ```
355355
#[inline]
356-
#[unstable(feature = "btree_set_entry", issue = "none")]
356+
#[unstable(feature = "btree_set_entry", issue = "133549")]
357357
pub fn into_value(self) -> T {
358358
self.inner.into_key()
359359
}
@@ -376,7 +376,7 @@ impl<'a, T: Ord, A: Allocator + Clone> VacantEntry<'a, T, A> {
376376
/// assert!(set.contains("poneyland"));
377377
/// ```
378378
#[inline]
379-
#[unstable(feature = "btree_set_entry", issue = "none")]
379+
#[unstable(feature = "btree_set_entry", issue = "133549")]
380380
pub fn insert(self) {
381381
self.inner.insert(SetValZST);
382382
}

0 commit comments

Comments
 (0)