]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #56432 - ordovicia:shrink-to-issue, r=Centril
authorkennytm <kennytm@gmail.com>
Mon, 3 Dec 2018 10:07:16 +0000 (18:07 +0800)
committerGitHub <noreply@github.com>
Mon, 3 Dec 2018 10:07:16 +0000 (18:07 +0800)
Update issue number of `shrink_to` methods to point the tracking issue

Tracking issue: #56431

src/liballoc/collections/binary_heap.rs
src/liballoc/collections/vec_deque.rs
src/liballoc/string.rs
src/liballoc/vec.rs
src/libstd/collections/hash/map.rs
src/libstd/collections/hash/set.rs
src/libstd/ffi/os_str.rs

index fcadcb544c431a9e9ede7bc00912ce3123b2533c..8c36962a299c2eef03ac89c4dae89cbbb35db1de 100644 (file)
@@ -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)
     }
index b52e93f85d94fe62000cb38fdfe478a33c552225..c8ee40f3d2735365560e037fc88977d847cbf305 100644 (file)
@@ -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");
 
index 0b25d911a299cf84ded7246311d691e74493c2ce..662f8ae614fcbed729514b50ce9e70c897cd3c7a 100644 (file)
@@ -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)
     }
index f7a0bbdceafc93325359fbb83a51b413548db0da..ca7c766e413307a268a828212b31f84ae57db622 100644 (file)
@@ -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));
     }
index 349aa029ba8cb9a69aefa2890793677dbe7a0901..536ce2e16a09b5e03b84da937e6aa061669a791f 100644 (file)
@@ -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");
 
index 5ac3e8f9cf7d3a28a48c5bc0eac59fbe0d1374f3..4bb3ce0cf4489e76b7417cb04a4acbe2e732500b 100644 (file)
@@ -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)
     }
index 0edfd122ceff9a080a30b28cde5e6e14658f59ae..9c40a31986cea69554febabb678d768cf9211fb4 100644 (file)
@@ -331,7 +331,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)
     }