diff options
| author | Tim (Theemathas) Chirananthavat <theemathas@gmail.com> | 2024-09-15 01:11:18 +0700 |
|---|---|---|
| committer | Tim (Theemathas) Chirananthavat <theemathas@gmail.com> | 2024-09-15 01:11:18 +0700 |
| commit | 811ee38ff0e291cc0633753f1aac152dd063d1d8 (patch) | |
| tree | b55f0519388af0160c0bea74ca223a28ddcb66b7 /library/alloc/src/vec | |
| parent | 79b87c57cbddc7ac4a6e9f7381616e77e3f443c5 (diff) | |
| download | rust-811ee38ff0e291cc0633753f1aac152dd063d1d8.tar.gz rust-811ee38ff0e291cc0633753f1aac152dd063d1d8.zip | |
Add tracking issue number for `box_vec_non_null`
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index aa23028cd29..0b04ac81c20 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -710,7 +710,7 @@ impl<T> Vec<T> { /// } /// ``` #[inline] - #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")] + #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")] pub unsafe fn from_parts(ptr: NonNull<T>, length: usize, capacity: usize) -> Self { unsafe { Self::from_parts_in(ptr, length, capacity, Global) } } @@ -1042,7 +1042,7 @@ impl<T, A: Allocator> Vec<T, A> { /// ``` #[inline] #[unstable(feature = "allocator_api", reason = "new API", issue = "32838")] - // #[unstable(feature = "box_vec_non_null", issue = "none")] + // #[unstable(feature = "box_vec_non_null", issue = "130364")] pub unsafe fn from_parts_in(ptr: NonNull<T>, length: usize, capacity: usize, alloc: A) -> Self { unsafe { Vec { buf: RawVec::from_nonnull_in(ptr, capacity, alloc), len: length } } } @@ -1121,7 +1121,7 @@ impl<T, A: Allocator> Vec<T, A> { /// assert_eq!(rebuilt, [4294967295, 0, 1]); /// ``` #[must_use = "losing the pointer will leak memory"] - #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")] + #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")] // #[unstable(feature = "vec_into_raw_parts", reason = "new API", issue = "65816")] pub fn into_parts(self) -> (NonNull<T>, usize, usize) { let (ptr, len, capacity) = self.into_raw_parts(); @@ -1218,7 +1218,7 @@ impl<T, A: Allocator> Vec<T, A> { /// ``` #[must_use = "losing the pointer will leak memory"] #[unstable(feature = "allocator_api", issue = "32838")] - // #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")] + // #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")] // #[unstable(feature = "vec_into_raw_parts", reason = "new API", issue = "65816")] pub fn into_parts_with_alloc(self) -> (NonNull<T>, usize, usize, A) { let (ptr, len, capacity, alloc) = self.into_raw_parts_with_alloc(); |
