@@ -157,7 +157,6 @@ impl Layout {
157
157
#[ must_use = "this returns the minimum alignment, \
158
158
without modifying the layout"]
159
159
#[ inline]
160
- #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( ptr_alignment_type) ) ]
161
160
pub const fn align ( & self ) -> usize {
162
161
self . align . as_usize ( )
163
162
}
@@ -255,7 +254,7 @@ impl Layout {
255
254
/// `align` violates the conditions listed in [`Layout::from_size_align`].
256
255
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
257
256
#[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
258
- #[ cfg_attr ( not ( bootstrap ) , rustc_const_stable_indirect) ]
257
+ #[ rustc_const_stable_indirect]
259
258
#[ inline]
260
259
pub const fn align_to ( & self , align : usize ) -> Result < Self , LayoutError > {
261
260
if let Some ( align) = Alignment :: new ( align) {
@@ -331,7 +330,7 @@ impl Layout {
331
330
/// to the layout's current size.
332
331
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
333
332
#[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
334
- #[ cfg_attr ( not ( bootstrap ) , rustc_const_stable_indirect) ]
333
+ #[ rustc_const_stable_indirect]
335
334
#[ must_use = "this returns a new `Layout`, \
336
335
without modifying the original"]
337
336
#[ inline]
@@ -431,7 +430,7 @@ impl Layout {
431
430
/// ```
432
431
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
433
432
#[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
434
- #[ cfg_attr ( not ( bootstrap ) , rustc_const_stable_indirect) ]
433
+ #[ rustc_const_stable_indirect]
435
434
#[ inline]
436
435
pub const fn extend ( & self , next : Self ) -> Result < ( Self , usize ) , LayoutError > {
437
436
let new_align = Alignment :: max ( self . align , next. align ) ;
@@ -495,7 +494,7 @@ impl Layout {
495
494
/// `isize::MAX`, returns `LayoutError`.
496
495
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
497
496
#[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
498
- #[ cfg_attr ( not ( bootstrap ) , rustc_const_stable_indirect) ]
497
+ #[ rustc_const_stable_indirect]
499
498
#[ inline]
500
499
pub const fn array < T > ( n : usize ) -> Result < Self , LayoutError > {
501
500
// Reduce the amount of code we need to monomorphize per `T`.
0 commit comments