diff options
| author | Hidehito Yabuuchi <hdht.ybuc@gmail.com> | 2018-12-02 16:07:57 +0900 |
|---|---|---|
| committer | Hidehito Yabuuchi <hdht.ybuc@gmail.com> | 2018-12-02 16:08:08 +0900 |
| commit | 1e18cc916f653d5bea212bddded8960f548a975d (patch) | |
| tree | 77b9e20a7058b9b9d6b0bebc478c5e4fba079e5e /src/libstd | |
| parent | af7554d3a2e9e6171ca44bd1d4828606a9868f74 (diff) | |
| download | rust-1e18cc916f653d5bea212bddded8960f548a975d.tar.gz rust-1e18cc916f653d5bea212bddded8960f548a975d.zip | |
Update issue number of `shrink_to` methods to point the tracking issue
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 | ||||
| -rw-r--r-- | src/libstd/collections/hash/set.rs | 2 | ||||
| -rw-r--r-- | src/libstd/ffi/os_str.rs | 2 |
3 files changed, 3 insertions, 3 deletions
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 @@ impl<K, V, S> HashMap<K, V, S> /// 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 @@ impl<T, S> HashSet<T, S> /// 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 @@ impl OsString { /// 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) } |
