Skip to content

Commit 0fd6e23

Browse files
committed
Add tracking issue number for box_vec_non_null
1 parent 459f246 commit 0fd6e23

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

alloc/src/boxed.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ impl<T: ?Sized> Box<T> {
11061106
///
11071107
/// [memory layout]: self#memory-layout
11081108
/// [`Layout`]: crate::Layout
1109-
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")]
1109+
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
11101110
#[inline]
11111111
#[must_use = "call `drop(Box::from_non_null(ptr))` if you intend to drop the `Box`"]
11121112
pub unsafe fn from_non_null(ptr: NonNull<T>) -> Self {
@@ -1216,7 +1216,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
12161216
/// [memory layout]: self#memory-layout
12171217
/// [`Layout`]: crate::Layout
12181218
#[unstable(feature = "allocator_api", issue = "32838")]
1219-
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")]
1219+
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
12201220
#[rustc_const_unstable(feature = "const_box", issue = "92521")]
12211221
#[inline]
12221222
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> {
13321332
///
13331333
/// [memory layout]: self#memory-layout
13341334
#[must_use = "losing the pointer will leak memory"]
1335-
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")]
1335+
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
13361336
#[inline]
13371337
pub fn into_non_null(b: Self) -> NonNull<T> {
13381338
// SAFETY: `Box` is guaranteed to be non-null.
@@ -1447,7 +1447,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
14471447
/// [memory layout]: self#memory-layout
14481448
#[must_use = "losing the pointer will leak memory"]
14491449
#[unstable(feature = "allocator_api", issue = "32838")]
1450-
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")]
1450+
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
14511451
#[inline]
14521452
pub fn into_non_null_with_allocator(b: Self) -> (NonNull<T>, A) {
14531453
let (ptr, alloc) = Box::into_raw_with_allocator(b);

alloc/src/vec/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ impl<T> Vec<T> {
710710
/// }
711711
/// ```
712712
#[inline]
713-
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")]
713+
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
714714
pub unsafe fn from_parts(ptr: NonNull<T>, length: usize, capacity: usize) -> Self {
715715
unsafe { Self::from_parts_in(ptr, length, capacity, Global) }
716716
}
@@ -1042,7 +1042,7 @@ impl<T, A: Allocator> Vec<T, A> {
10421042
/// ```
10431043
#[inline]
10441044
#[unstable(feature = "allocator_api", reason = "new API", issue = "32838")]
1045-
// #[unstable(feature = "box_vec_non_null", issue = "none")]
1045+
// #[unstable(feature = "box_vec_non_null", issue = "130364")]
10461046
pub unsafe fn from_parts_in(ptr: NonNull<T>, length: usize, capacity: usize, alloc: A) -> Self {
10471047
unsafe { Vec { buf: RawVec::from_nonnull_in(ptr, capacity, alloc), len: length } }
10481048
}
@@ -1121,7 +1121,7 @@ impl<T, A: Allocator> Vec<T, A> {
11211121
/// assert_eq!(rebuilt, [4294967295, 0, 1]);
11221122
/// ```
11231123
#[must_use = "losing the pointer will leak memory"]
1124-
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")]
1124+
#[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
11251125
// #[unstable(feature = "vec_into_raw_parts", reason = "new API", issue = "65816")]
11261126
pub fn into_parts(self) -> (NonNull<T>, usize, usize) {
11271127
let (ptr, len, capacity) = self.into_raw_parts();
@@ -1218,7 +1218,7 @@ impl<T, A: Allocator> Vec<T, A> {
12181218
/// ```
12191219
#[must_use = "losing the pointer will leak memory"]
12201220
#[unstable(feature = "allocator_api", issue = "32838")]
1221-
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "none")]
1221+
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
12221222
// #[unstable(feature = "vec_into_raw_parts", reason = "new API", issue = "65816")]
12231223
pub fn into_parts_with_alloc(self) -> (NonNull<T>, usize, usize, A) {
12241224
let (ptr, len, capacity, alloc) = self.into_raw_parts_with_alloc();

0 commit comments

Comments
 (0)