Skip to content

Commit 1e18cc9

Browse files
committed
Update issue number of shrink_to methods to point the tracking issue
1 parent af7554d commit 1e18cc9

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/liballoc/collections/binary_heap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ impl<T: Ord> BinaryHeap<T> {
529529
/// assert!(heap.capacity() >= 10);
530530
/// ```
531531
#[inline]
532-
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
532+
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
533533
pub fn shrink_to(&mut self, min_capacity: usize) {
534534
self.data.shrink_to(min_capacity)
535535
}

src/liballoc/collections/vec_deque.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ impl<T> VecDeque<T> {
701701
/// buf.shrink_to(0);
702702
/// assert!(buf.capacity() >= 4);
703703
/// ```
704-
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
704+
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
705705
pub fn shrink_to(&mut self, min_capacity: usize) {
706706
assert!(self.capacity() >= min_capacity, "Tried to shrink to a larger capacity");
707707

src/liballoc/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ impl String {
10501050
/// assert!(s.capacity() >= 3);
10511051
/// ```
10521052
#[inline]
1053-
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
1053+
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
10541054
pub fn shrink_to(&mut self, min_capacity: usize) {
10551055
self.vec.shrink_to(min_capacity)
10561056
}

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ impl<T> Vec<T> {
613613
/// vec.shrink_to(0);
614614
/// assert!(vec.capacity() >= 3);
615615
/// ```
616-
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
616+
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
617617
pub fn shrink_to(&mut self, min_capacity: usize) {
618618
self.buf.shrink_to_fit(cmp::max(self.len, min_capacity));
619619
}

src/libstd/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ impl<K, V, S> HashMap<K, V, S>
10181018
/// map.shrink_to(0);
10191019
/// assert!(map.capacity() >= 2);
10201020
/// ```
1021-
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
1021+
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
10221022
pub fn shrink_to(&mut self, min_capacity: usize) {
10231023
assert!(self.capacity() >= min_capacity, "Tried to shrink to a larger capacity");
10241024

src/libstd/collections/hash/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl<T, S> HashSet<T, S>
315315
/// assert!(set.capacity() >= 2);
316316
/// ```
317317
#[inline]
318-
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
318+
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
319319
pub fn shrink_to(&mut self, min_capacity: usize) {
320320
self.map.shrink_to(min_capacity)
321321
}

src/libstd/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl OsString {
324324
/// assert!(s.capacity() >= 3);
325325
/// ```
326326
#[inline]
327-
#[unstable(feature = "shrink_to", reason = "new API", issue="0")]
327+
#[unstable(feature = "shrink_to", reason = "new API", issue="56431")]
328328
pub fn shrink_to(&mut self, min_capacity: usize) {
329329
self.inner.shrink_to(min_capacity)
330330
}

0 commit comments

Comments
 (0)