@@ -349,10 +349,9 @@ impl<T, A: Allocator> Box<T, A> {
349349 #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
350350 #[ must_use]
351351 #[ inline]
352- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
353352 pub const fn new_in ( x : T , alloc : A ) -> Self
354353 where
355- A : ~const Allocator + ~const Drop + ~ const Destruct ,
354+ A : ~const Allocator + ~const Destruct ,
356355 {
357356 let mut boxed = Self :: new_uninit_in ( alloc) ;
358357 unsafe {
@@ -379,11 +378,10 @@ impl<T, A: Allocator> Box<T, A> {
379378 #[ unstable( feature = "allocator_api" , issue = "32838" ) ]
380379 #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
381380 #[ inline]
382- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
383381 pub const fn try_new_in ( x : T , alloc : A ) -> Result < Self , AllocError >
384382 where
385- T : ~const Drop + ~ const Destruct ,
386- A : ~const Allocator + ~const Drop + ~ const Destruct ,
383+ T : ~const Destruct ,
384+ A : ~const Allocator + ~const Destruct ,
387385 {
388386 let mut boxed = Self :: try_new_uninit_in ( alloc) ?;
389387 unsafe {
@@ -417,10 +415,9 @@ impl<T, A: Allocator> Box<T, A> {
417415 #[ cfg( not( no_global_oom_handling) ) ]
418416 #[ must_use]
419417 // #[unstable(feature = "new_uninit", issue = "63291")]
420- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
421418 pub const fn new_uninit_in ( alloc : A ) -> Box < mem:: MaybeUninit < T > , A >
422419 where
423- A : ~const Allocator + ~const Drop + ~ const Destruct ,
420+ A : ~const Allocator + ~const Destruct ,
424421 {
425422 let layout = Layout :: new :: < mem:: MaybeUninit < T > > ( ) ;
426423 // NOTE: Prefer match over unwrap_or_else since closure sometimes not inlineable.
@@ -456,10 +453,9 @@ impl<T, A: Allocator> Box<T, A> {
456453 #[ unstable( feature = "allocator_api" , issue = "32838" ) ]
457454 // #[unstable(feature = "new_uninit", issue = "63291")]
458455 #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
459- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
460456 pub const fn try_new_uninit_in ( alloc : A ) -> Result < Box < mem:: MaybeUninit < T > , A > , AllocError >
461457 where
462- A : ~const Allocator + ~const Drop + ~ const Destruct ,
458+ A : ~const Allocator + ~const Destruct ,
463459 {
464460 let layout = Layout :: new :: < mem:: MaybeUninit < T > > ( ) ;
465461 let ptr = alloc. allocate ( layout) ?. cast ( ) ;
@@ -491,10 +487,9 @@ impl<T, A: Allocator> Box<T, A> {
491487 #[ cfg( not( no_global_oom_handling) ) ]
492488 // #[unstable(feature = "new_uninit", issue = "63291")]
493489 #[ must_use]
494- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
495490 pub const fn new_zeroed_in ( alloc : A ) -> Box < mem:: MaybeUninit < T > , A >
496491 where
497- A : ~const Allocator + ~const Drop + ~ const Destruct ,
492+ A : ~const Allocator + ~const Destruct ,
498493 {
499494 let layout = Layout :: new :: < mem:: MaybeUninit < T > > ( ) ;
500495 // NOTE: Prefer match over unwrap_or_else since closure sometimes not inlineable.
@@ -530,10 +525,9 @@ impl<T, A: Allocator> Box<T, A> {
530525 #[ unstable( feature = "allocator_api" , issue = "32838" ) ]
531526 // #[unstable(feature = "new_uninit", issue = "63291")]
532527 #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
533- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
534528 pub const fn try_new_zeroed_in ( alloc : A ) -> Result < Box < mem:: MaybeUninit < T > , A > , AllocError >
535529 where
536- A : ~const Allocator + ~const Drop + ~ const Destruct ,
530+ A : ~const Allocator + ~const Destruct ,
537531 {
538532 let layout = Layout :: new :: < mem:: MaybeUninit < T > > ( ) ;
539533 let ptr = alloc. allocate_zeroed ( layout) ?. cast ( ) ;
@@ -547,10 +541,9 @@ impl<T, A: Allocator> Box<T, A> {
547541 #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
548542 #[ must_use]
549543 #[ inline( always) ]
550- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
551544 pub const fn pin_in ( x : T , alloc : A ) -> Pin < Self >
552545 where
553- A : ' static + ~const Allocator + ~const Drop + ~ const Destruct ,
546+ A : ' static + ~const Allocator + ~const Destruct ,
554547 {
555548 Self :: into_pin ( Self :: new_in ( x, alloc) )
556549 }
@@ -579,10 +572,9 @@ impl<T, A: Allocator> Box<T, A> {
579572 #[ unstable( feature = "box_into_inner" , issue = "80437" ) ]
580573 #[ rustc_const_unstable( feature = "const_box" , issue = "92521" ) ]
581574 #[ inline]
582- #[ cfg_attr( not( bootstrap) , allow( drop_bounds) ) ] // FIXME remove `~const Drop` and this attr when bumping
583575 pub const fn into_inner ( boxed : Self ) -> T
584576 where
585- Self : ~const Drop + ~ const Destruct ,
577+ Self : ~const Destruct ,
586578 {
587579 * boxed
588580 }
0 commit comments