From 1e18cc916f653d5bea212bddded8960f548a975d Mon Sep 17 00:00:00 2001 From: Hidehito Yabuuchi Date: Sun, 2 Dec 2018 16:07:57 +0900 Subject: [PATCH] Update issue number of `shrink_to` methods to point the tracking issue --- src/liballoc/collections/binary_heap.rs | 2 +- src/liballoc/collections/vec_deque.rs | 2 +- src/liballoc/string.rs | 2 +- src/liballoc/vec.rs | 2 +- src/libstd/collections/hash/map.rs | 2 +- src/libstd/collections/hash/set.rs | 2 +- src/libstd/ffi/os_str.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/liballoc/collections/binary_heap.rs b/src/liballoc/collections/binary_heap.rs index fcadcb544c4..8c36962a299 100644 --- a/src/liballoc/collections/binary_heap.rs +++ b/src/liballoc/collections/binary_heap.rs @@ -529,7 +529,7 @@ pub fn shrink_to_fit(&mut self) { /// assert!(heap.capacity() >= 10); /// ``` #[inline] - #[unstable(feature = "shrink_to", reason = "new API", issue="0")] + #[unstable(feature = "shrink_to", reason = "new API", issue="56431")] pub fn shrink_to(&mut self, min_capacity: usize) { self.data.shrink_to(min_capacity) } diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index cbf104a8fcd..baa26ffd937 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -701,7 +701,7 @@ pub fn shrink_to_fit(&mut self) { /// buf.shrink_to(0); /// assert!(buf.capacity() >= 4); /// ``` - #[unstable(feature = "shrink_to", reason = "new API", issue="0")] + #[unstable(feature = "shrink_to", reason = "new API", issue="56431")] pub fn shrink_to(&mut self, min_capacity: usize) { assert!(self.capacity() >= min_capacity, "Tried to shrink to a larger capacity"); diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 0b25d911a29..662f8ae614f 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -1050,7 +1050,7 @@ pub fn shrink_to_fit(&mut self) { /// assert!(s.capacity() >= 3); /// ``` #[inline] - #[unstable(feature = "shrink_to", reason = "new API", issue="0")] + #[unstable(feature = "shrink_to", reason = "new API", issue="56431")] pub fn shrink_to(&mut self, min_capacity: usize) { self.vec.shrink_to(min_capacity) } diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index f7a0bbdceaf..ca7c766e413 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -613,7 +613,7 @@ pub fn shrink_to_fit(&mut self) { /// vec.shrink_to(0); /// assert!(vec.capacity() >= 3); /// ``` - #[unstable(feature = "shrink_to", reason = "new API", issue="0")] + #[unstable(feature = "shrink_to", reason = "new API", issue="56431")] pub fn shrink_to(&mut self, min_capacity: usize) { self.buf.shrink_to_fit(cmp::max(self.len, min_capacity)); } diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 349aa029ba8..536ce2e16a0 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -1018,7 +1018,7 @@ pub fn shrink_to_fit(&mut self) { /// map.shrink_to(0); /// assert!(map.capacity() >= 2); /// ``` - #[unstable(feature = "shrink_to", reason = "new API", issue="0")] + #[unstable(feature = "shrink_to", reason = "new API", issue="56431")] pub fn shrink_to(&mut self, min_capacity: usize) { assert!(self.capacity() >= min_capacity, "Tried to shrink to a larger capacity"); diff --git a/src/libstd/collections/hash/set.rs b/src/libstd/collections/hash/set.rs index 5ac3e8f9cf7..4bb3ce0cf44 100644 --- a/src/libstd/collections/hash/set.rs +++ b/src/libstd/collections/hash/set.rs @@ -315,7 +315,7 @@ pub fn shrink_to_fit(&mut self) { /// assert!(set.capacity() >= 2); /// ``` #[inline] - #[unstable(feature = "shrink_to", reason = "new API", issue="0")] + #[unstable(feature = "shrink_to", reason = "new API", issue="56431")] pub fn shrink_to(&mut self, min_capacity: usize) { self.map.shrink_to(min_capacity) } diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index e9390630445..edca8c9e5b5 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -324,7 +324,7 @@ pub fn shrink_to_fit(&mut self) { /// assert!(s.capacity() >= 3); /// ``` #[inline] - #[unstable(feature = "shrink_to", reason = "new API", issue="0")] + #[unstable(feature = "shrink_to", reason = "new API", issue="56431")] pub fn shrink_to(&mut self, min_capacity: usize) { self.inner.shrink_to(min_capacity) } -- 2.44.0