@@ -56,7 +56,7 @@ impl Layout {
5656 /// must not overflow (i.e., the rounded value must be less than
5757 /// or equal to `usize::MAX`).
5858 #[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
59- #[ rustc_const_stable( feature = "const_alloc_layout " , since = "1.50.0" ) ]
59+ #[ rustc_const_stable( feature = "const_alloc_layout_size_align " , since = "1.50.0" ) ]
6060 #[ inline]
6161 pub const fn from_size_align ( size : usize , align : usize ) -> Result < Self , LayoutError > {
6262 if !align. is_power_of_two ( ) {
@@ -93,7 +93,7 @@ impl Layout {
9393 /// This function is unsafe as it does not verify the preconditions from
9494 /// [`Layout::from_size_align`].
9595 #[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
96- #[ rustc_const_stable( feature = "alloc_layout " , since = "1.36.0" ) ]
96+ #[ rustc_const_stable( feature = "const_alloc_layout_unchecked " , since = "1.36.0" ) ]
9797 #[ must_use]
9898 #[ inline]
9999 pub const unsafe fn from_size_align_unchecked ( size : usize , align : usize ) -> Self {
@@ -103,7 +103,7 @@ impl Layout {
103103
104104 /// The minimum size in bytes for a memory block of this layout.
105105 #[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
106- #[ rustc_const_stable( feature = "const_alloc_layout " , since = "1.50.0" ) ]
106+ #[ rustc_const_stable( feature = "const_alloc_layout_size_align " , since = "1.50.0" ) ]
107107 #[ must_use]
108108 #[ inline]
109109 pub const fn size ( & self ) -> usize {
@@ -112,7 +112,7 @@ impl Layout {
112112
113113 /// The minimum byte alignment for a memory block of this layout.
114114 #[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
115- #[ rustc_const_stable( feature = "const_alloc_layout " , since = "1.50.0" ) ]
115+ #[ rustc_const_stable( feature = "const_alloc_layout_size_align " , since = "1.50.0" ) ]
116116 #[ must_use = "this returns the minimum alignment, \
117117 without modifying the layout"]
118118 #[ inline]
0 commit comments