@@ -178,8 +178,7 @@ impl Layout {
178
178
/// allocate backing structure for `T` (which could be a trait
179
179
/// or other unsized type like a slice).
180
180
#[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
181
- #[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
182
- #[ rustc_const_stable_indirect]
181
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION" ) ]
183
182
#[ must_use]
184
183
#[ inline]
185
184
pub const fn for_value < T : ?Sized > ( t : & T ) -> Self {
@@ -253,8 +252,7 @@ impl Layout {
253
252
/// Returns an error if the combination of `self.size()` and the given
254
253
/// `align` violates the conditions listed in [`Layout::from_size_align`].
255
254
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
256
- #[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
257
- #[ rustc_const_stable_indirect]
255
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION" ) ]
258
256
#[ inline]
259
257
pub const fn align_to ( & self , align : usize ) -> Result < Self , LayoutError > {
260
258
if let Some ( align) = Alignment :: new ( align) {
@@ -329,8 +327,7 @@ impl Layout {
329
327
/// This is equivalent to adding the result of `padding_needed_for`
330
328
/// to the layout's current size.
331
329
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
332
- #[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
333
- #[ rustc_const_stable_indirect]
330
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION" ) ]
334
331
#[ must_use = "this returns a new `Layout`, \
335
332
without modifying the original"]
336
333
#[ inline]
@@ -429,8 +426,7 @@ impl Layout {
429
426
/// # assert_eq!(repr_c(&[u64, u32, u16, u32]), Ok((s, vec![0, 8, 12, 16])));
430
427
/// ```
431
428
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
432
- #[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
433
- #[ rustc_const_stable_indirect]
429
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION" ) ]
434
430
#[ inline]
435
431
pub const fn extend ( & self , next : Self ) -> Result < ( Self , usize ) , LayoutError > {
436
432
let new_align = Alignment :: max ( self . align , next. align ) ;
@@ -493,8 +489,7 @@ impl Layout {
493
489
/// On arithmetic overflow or when the total size would exceed
494
490
/// `isize::MAX`, returns `LayoutError`.
495
491
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
496
- #[ rustc_const_unstable( feature = "const_alloc_layout" , issue = "67521" ) ]
497
- #[ rustc_const_stable_indirect]
492
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION" ) ]
498
493
#[ inline]
499
494
pub const fn array < T > ( n : usize ) -> Result < Self , LayoutError > {
500
495
// Reduce the amount of code we need to monomorphize per `T`.
0 commit comments