@@ -178,7 +178,7 @@ impl Layout {
178178 /// allocate backing structure for `T` (which could be a trait
179179 /// or other unsized type like a slice).
180180 #[ 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 " ) ]
182182 #[ must_use]
183183 #[ inline]
184184 pub const fn for_value < T : ?Sized > ( t : & T ) -> Self {
@@ -252,7 +252,7 @@ impl Layout {
252252 /// Returns an error if the combination of `self.size()` and the given
253253 /// `align` violates the conditions listed in [`Layout::from_size_align`].
254254 #[ 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 " ) ]
256256 #[ inline]
257257 pub const fn align_to ( & self , align : usize ) -> Result < Self , LayoutError > {
258258 if let Some ( align) = Alignment :: new ( align) {
@@ -327,7 +327,7 @@ impl Layout {
327327 /// This is equivalent to adding the result of `padding_needed_for`
328328 /// to the layout's current size.
329329 #[ 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 " ) ]
331331 #[ must_use = "this returns a new `Layout`, \
332332 without modifying the original"]
333333 #[ inline]
@@ -426,7 +426,7 @@ impl Layout {
426426 /// # assert_eq!(repr_c(&[u64, u32, u16, u32]), Ok((s, vec![0, 8, 12, 16])));
427427 /// ```
428428 #[ 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 " ) ]
430430 #[ inline]
431431 pub const fn extend ( & self , next : Self ) -> Result < ( Self , usize ) , LayoutError > {
432432 let new_align = Alignment :: max ( self . align , next. align ) ;
@@ -489,7 +489,7 @@ impl Layout {
489489 /// On arithmetic overflow or when the total size would exceed
490490 /// `isize::MAX`, returns `LayoutError`.
491491 #[ 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 " ) ]
493493 #[ inline]
494494 pub const fn array < T > ( n : usize ) -> Result < Self , LayoutError > {
495495 // Reduce the amount of code we need to monomorphize per `T`.
0 commit comments