@@ -50,7 +50,7 @@ impl Layout {
50
50
/// must not overflow (i.e., the rounded value must be less than
51
51
/// or equal to `usize::MAX`).
52
52
#[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
53
- #[ rustc_const_unstable ( feature = "const_alloc_layout" , issue = "67521 " ) ]
53
+ #[ rustc_const_stable ( feature = "const_alloc_layout" , since = "1.50.0 " ) ]
54
54
#[ inline]
55
55
pub const fn from_size_align ( size : usize , align : usize ) -> Result < Self , LayoutError > {
56
56
if !align. is_power_of_two ( ) {
@@ -96,15 +96,15 @@ impl Layout {
96
96
97
97
/// The minimum size in bytes for a memory block of this layout.
98
98
#[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
99
- #[ rustc_const_unstable ( feature = "const_alloc_layout" , issue = "67521 " ) ]
99
+ #[ rustc_const_stable ( feature = "const_alloc_layout" , since = "1.50.0 " ) ]
100
100
#[ inline]
101
101
pub const fn size ( & self ) -> usize {
102
102
self . size_
103
103
}
104
104
105
105
/// The minimum byte alignment for a memory block of this layout.
106
106
#[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
107
- #[ rustc_const_unstable ( feature = "const_alloc_layout" , issue = "67521 " ) ]
107
+ #[ rustc_const_stable ( feature = "const_alloc_layout" , since = "1.50.0 " ) ]
108
108
#[ inline]
109
109
pub const fn align ( & self ) -> usize {
110
110
self . align_ . get ( )
0 commit comments