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 | |
| parent | 79b87c57cbddc7ac4a6e9f7381616e77e3f443c5 (diff) | |
| download | rust-811ee38ff0e291cc0633753f1aac152dd063d1d8.tar.gz rust-811ee38ff0e291cc0633753f1aac152dd063d1d8.zip | |
Add tracking issue number for `box_vec_non_null`
| -rw-r--r-- | library/alloc/src/boxed.rs | 8 | ||||
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index f265b7b6f26..22d950bf3ba 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -1106,7 +1106,7 @@ impl<T: ?Sized> Box<T> { /// /// [memory layout]: self#memory-layout /// [`Layout`]: crate::Layout - #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")] + #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")] #[inline] #[must_use = "call `drop(Box::from_non_null(ptr))` if you intend to drop the `Box`"] pub unsafe fn from_non_null(ptr: NonNull<T>) -> Self { @@ -1216,7 +1216,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> { /// [memory layout]: self#memory-layout /// [`Layout`]: crate::Layout #[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")] #[rustc_const_unstable(feature = "const_box", issue = "92521")] #[inline] pub const unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Self { @@ -1332,7 +1332,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> { /// /// [memory layout]: self#memory-layout #[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")] #[inline] pub fn into_non_null(b: Self) -> NonNull<T> { // SAFETY: `Box` is guaranteed to be non-null. @@ -1447,7 +1447,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> { /// [memory layout]: self#memory-layout #[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")] #[inline] pub fn into_non_null_with_allocator(b: Self) -> (NonNull<T>, A) { let (ptr, alloc) = Box::into_raw_with_allocator(b); 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(); |
