@@ -346,7 +346,7 @@ impl<T, A: Allocator> Box<T, A> {
346
346
/// ```
347
347
#[ cfg( not( no_global_oom_handling) ) ]
348
348
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
349
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
349
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
350
350
#[ must_use]
351
351
#[ inline]
352
352
pub const fn new_in ( x : T , alloc : A ) -> Self
@@ -376,7 +376,7 @@ impl<T, A: Allocator> Box<T, A> {
376
376
/// # Ok::<(), std::alloc::AllocError>(())
377
377
/// ```
378
378
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
379
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
379
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
380
380
#[ inline]
381
381
pub const fn try_new_in ( x : T , alloc : A ) -> Result < Self , AllocError >
382
382
where
@@ -411,7 +411,7 @@ impl<T, A: Allocator> Box<T, A> {
411
411
/// assert_eq!(*five, 5)
412
412
/// ```
413
413
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
414
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
414
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
415
415
#[ cfg( not( no_global_oom_handling) ) ]
416
416
#[ must_use]
417
417
// #[unstable(feature = "new_uninit", issue = "63291")]
@@ -452,7 +452,7 @@ impl<T, A: Allocator> Box<T, A> {
452
452
/// ```
453
453
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
454
454
// #[unstable(feature = "new_uninit", issue = "63291")]
455
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
455
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
456
456
pub const fn try_new_uninit_in ( alloc : A ) -> Result < Box < mem:: MaybeUninit < T > , A > , AllocError >
457
457
where
458
458
A : ~const Allocator + ~const Drop ,
@@ -483,7 +483,7 @@ impl<T, A: Allocator> Box<T, A> {
483
483
///
484
484
/// [zeroed]: mem::MaybeUninit::zeroed
485
485
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
486
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
486
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
487
487
#[ cfg( not( no_global_oom_handling) ) ]
488
488
// #[unstable(feature = "new_uninit", issue = "63291")]
489
489
#[ must_use]
@@ -524,7 +524,7 @@ impl<T, A: Allocator> Box<T, A> {
524
524
/// [zeroed]: mem::MaybeUninit::zeroed
525
525
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
526
526
// #[unstable(feature = "new_uninit", issue = "63291")]
527
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
527
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
528
528
pub const fn try_new_zeroed_in ( alloc : A ) -> Result < Box < mem:: MaybeUninit < T > , A > , AllocError >
529
529
where
530
530
A : ~const Allocator + ~const Drop ,
@@ -538,7 +538,7 @@ impl<T, A: Allocator> Box<T, A> {
538
538
/// `x` will be pinned in memory and unable to be moved.
539
539
#[ cfg( not( no_global_oom_handling) ) ]
540
540
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
541
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
541
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
542
542
#[ must_use]
543
543
#[ inline( always) ]
544
544
pub const fn pin_in ( x : T , alloc : A ) -> Pin < Self >
@@ -552,7 +552,7 @@ impl<T, A: Allocator> Box<T, A> {
552
552
///
553
553
/// This conversion does not allocate on the heap and happens in place.
554
554
#[ unstable( feature = "box_into_boxed_slice" , issue = "71582" ) ]
555
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
555
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
556
556
pub const fn into_boxed_slice ( boxed : Self ) -> Box < [ T ] , A > {
557
557
let ( raw, alloc) = Box :: into_raw_with_allocator ( boxed) ;
558
558
unsafe { Box :: from_raw_in ( raw as * mut [ T ; 1 ] , alloc) }
@@ -570,7 +570,7 @@ impl<T, A: Allocator> Box<T, A> {
570
570
/// assert_eq!(Box::into_inner(c), 5);
571
571
/// ```
572
572
#[ unstable( feature = "box_into_inner" , issue = "80437" ) ]
573
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
573
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
574
574
#[ inline]
575
575
pub const fn into_inner ( boxed : Self ) -> T
576
576
where
@@ -789,7 +789,7 @@ impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
789
789
/// assert_eq!(*five, 5)
790
790
/// ```
791
791
#[ unstable( feature = "new_uninit" , issue = "63291" ) ]
792
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
792
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
793
793
#[ inline]
794
794
pub const unsafe fn assume_init ( self ) -> Box < T , A > {
795
795
let ( raw, alloc) = Box :: into_raw_with_allocator ( self ) ;
@@ -824,7 +824,7 @@ impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
824
824
/// }
825
825
/// ```
826
826
#[ unstable( feature = "new_uninit" , issue = "63291" ) ]
827
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
827
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
828
828
#[ inline]
829
829
pub const fn write ( mut boxed : Self , value : T ) -> Box < T , A > {
830
830
unsafe {
@@ -971,7 +971,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
971
971
/// [memory layout]: self#memory-layout
972
972
/// [`Layout`]: crate::Layout
973
973
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
974
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
974
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
975
975
#[ inline]
976
976
pub const unsafe fn from_raw_in ( raw : * mut T , alloc : A ) -> Self {
977
977
Box ( unsafe { Unique :: new_unchecked ( raw) } , alloc)
@@ -1069,7 +1069,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1069
1069
///
1070
1070
/// [memory layout]: self#memory-layout
1071
1071
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
1072
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1072
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1073
1073
#[ inline]
1074
1074
pub const fn into_raw_with_allocator ( b : Self ) -> ( * mut T , A ) {
1075
1075
let ( leaked, alloc) = Box :: into_unique ( b) ;
@@ -1081,7 +1081,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1081
1081
issue = "none" ,
1082
1082
reason = "use `Box::leak(b).into()` or `Unique::from(Box::leak(b))` instead"
1083
1083
) ]
1084
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1084
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1085
1085
#[ inline]
1086
1086
#[ doc( hidden) ]
1087
1087
pub const fn into_unique ( b : Self ) -> ( Unique < T > , A ) {
@@ -1100,7 +1100,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1100
1100
/// to call it as `Box::allocator(&b)` instead of `b.allocator()`. This
1101
1101
/// is so that there is no conflict with a method on the inner type.
1102
1102
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
1103
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1103
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1104
1104
#[ inline]
1105
1105
pub const fn allocator ( b : & Self ) -> & A {
1106
1106
& b. 1
@@ -1142,7 +1142,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1142
1142
/// assert_eq!(*static_ref, [4, 2, 3]);
1143
1143
/// ```
1144
1144
#[ stable( feature = "box_leak" , since = "1.26.0" ) ]
1145
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1145
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1146
1146
#[ inline]
1147
1147
pub const fn leak < ' a > ( b : Self ) -> & ' a mut T
1148
1148
where
@@ -1157,7 +1157,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1157
1157
///
1158
1158
/// This is also available via [`From`].
1159
1159
#[ unstable( feature = "box_into_pin" , issue = "62370" ) ]
1160
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1160
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1161
1161
pub const fn into_pin ( boxed : Self ) -> Pin < Self >
1162
1162
where
1163
1163
A : ' static ,
@@ -1170,7 +1170,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
1170
1170
}
1171
1171
1172
1172
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1173
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1173
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1174
1174
unsafe impl < #[ may_dangle] T : ?Sized , A : Allocator > const Drop for Box < T , A > {
1175
1175
fn drop ( & mut self ) {
1176
1176
// FIXME: Do nothing, drop is currently performed by compiler.
@@ -1381,7 +1381,7 @@ impl<T> From<T> for Box<T> {
1381
1381
}
1382
1382
1383
1383
#[ stable( feature = "pin" , since = "1.33.0" ) ]
1384
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1384
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1385
1385
impl < T : ?Sized , A : Allocator > const From < Box < T , A > > for Pin < Box < T , A > >
1386
1386
where
1387
1387
A : ' static ,
@@ -1761,7 +1761,7 @@ impl<T: ?Sized, A: Allocator> fmt::Pointer for Box<T, A> {
1761
1761
}
1762
1762
1763
1763
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1764
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1764
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1765
1765
impl < T : ?Sized , A : Allocator > const Deref for Box < T , A > {
1766
1766
type Target = T ;
1767
1767
@@ -1771,7 +1771,7 @@ impl<T: ?Sized, A: Allocator> const Deref for Box<T, A> {
1771
1771
}
1772
1772
1773
1773
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1774
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1774
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1775
1775
impl < T : ?Sized , A : Allocator > const DerefMut for Box < T , A > {
1776
1776
fn deref_mut ( & mut self ) -> & mut T {
1777
1777
& mut * * self
@@ -1951,7 +1951,7 @@ impl<T: ?Sized, A: Allocator> AsMut<T> for Box<T, A> {
1951
1951
* could have a method to project a Pin<T> from it.
1952
1952
*/
1953
1953
#[ stable( feature = "pin" , since = "1.33.0" ) ]
1954
- #[ rustc_const_unstable( feature = "const_box" , issue = "none " ) ]
1954
+ #[ rustc_const_unstable( feature = "const_box" , issue = "92521 " ) ]
1955
1955
impl < T : ?Sized , A : Allocator > const Unpin for Box < T , A > where A : ' static { }
1956
1956
1957
1957
#[ unstable( feature = "generator_trait" , issue = "43122" ) ]
0 commit comments