@@ -178,7 +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_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION " ) ]
181
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "1.85.0 " ) ]
182
182
#[ must_use]
183
183
#[ inline]
184
184
pub const fn for_value < T : ?Sized > ( t : & T ) -> Self {
@@ -252,7 +252,7 @@ impl Layout {
252
252
/// Returns an error if the combination of `self.size()` and the given
253
253
/// `align` violates the conditions listed in [`Layout::from_size_align`].
254
254
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
255
- #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION " ) ]
255
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "1.85.0 " ) ]
256
256
#[ inline]
257
257
pub const fn align_to ( & self , align : usize ) -> Result < Self , LayoutError > {
258
258
if let Some ( align) = Alignment :: new ( align) {
@@ -327,7 +327,7 @@ impl Layout {
327
327
/// This is equivalent to adding the result of `padding_needed_for`
328
328
/// to the layout's current size.
329
329
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
330
- #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION " ) ]
330
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "1.85.0 " ) ]
331
331
#[ must_use = "this returns a new `Layout`, \
332
332
without modifying the original"]
333
333
#[ inline]
@@ -426,7 +426,7 @@ impl Layout {
426
426
/// # assert_eq!(repr_c(&[u64, u32, u16, u32]), Ok((s, vec![0, 8, 12, 16])));
427
427
/// ```
428
428
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
429
- #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION " ) ]
429
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "1.85.0 " ) ]
430
430
#[ inline]
431
431
pub const fn extend ( & self , next : Self ) -> Result < ( Self , usize ) , LayoutError > {
432
432
let new_align = Alignment :: max ( self . align , next. align ) ;
@@ -489,7 +489,7 @@ impl Layout {
489
489
/// On arithmetic overflow or when the total size would exceed
490
490
/// `isize::MAX`, returns `LayoutError`.
491
491
#[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
492
- #[ rustc_const_stable( feature = "const_alloc_layout" , since = "CURRENT_RUSTC_VERSION " ) ]
492
+ #[ rustc_const_stable( feature = "const_alloc_layout" , since = "1.85.0 " ) ]
493
493
#[ inline]
494
494
pub const fn array < T > ( n : usize ) -> Result < Self , LayoutError > {
495
495
// Reduce the amount of code we need to monomorphize per `T`.
0 commit comments