@@ -1149,9 +1149,8 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1149
1149
///
1150
1150
/// [memory layout]: self#memory-layout
1151
1151
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
1152
- #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
1153
1152
#[ inline]
1154
- pub const unsafe fn from_raw_in ( raw : * mut T , alloc : A ) -> Self {
1153
+ pub unsafe fn from_raw_in ( raw : * mut T , alloc : A ) -> Self {
1155
1154
Box ( unsafe { Unique :: new_unchecked ( raw) } , alloc)
1156
1155
}
1157
1156
@@ -1203,9 +1202,8 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1203
1202
/// [memory layout]: self#memory-layout
1204
1203
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
1205
1204
// #[unstable(feature = "box_vec_non_null", reason = "new API", issue = "130364")]
1206
- #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
1207
1205
#[ inline]
1208
- pub const unsafe fn from_non_null_in ( raw : NonNull < T > , alloc : A ) -> Self {
1206
+ pub unsafe fn from_non_null_in ( raw : NonNull < T > , alloc : A ) -> Self {
1209
1207
// SAFETY: guaranteed by the caller.
1210
1208
unsafe { Box :: from_raw_in ( raw. as_ptr ( ) , alloc) }
1211
1209
}
@@ -1550,9 +1548,8 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1550
1548
/// to call it as `Box::allocator(&b)` instead of `b.allocator()`. This
1551
1549
/// is so that there is no conflict with a method on the inner type.
1552
1550
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
1553
- #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
1554
1551
#[ inline]
1555
- pub const fn allocator ( b : & Self ) -> & A {
1552
+ pub fn allocator ( b : & Self ) -> & A {
1556
1553
& b. 1
1557
1554
}
1558
1555
@@ -1639,8 +1636,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1639
1636
/// let bar = Pin::from(foo);
1640
1637
/// ```
1641
1638
#[ stable( feature = "box_into_pin" , since = "1.63.0" ) ]
1642
- #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
1643
- pub const fn into_pin ( boxed : Self ) -> Pin < Self >
1639
+ pub fn into_pin ( boxed : Self ) -> Pin < Self >
1644
1640
where
1645
1641
A : ' static ,
1646
1642
{
0 commit comments