]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/alloc/layout.rs
Rollup merge of #85608 - scottmcm:stabilize-control-flow-enum-basics, r=m-ou-se
[rust.git] / library / core / src / alloc / layout.rs
index 8b95b70396bbd8f99d7fa430cf15fc29f1607642..0e7667dd89e644916228765c79ecc07d4f5f1b1b 100644 (file)
@@ -93,7 +93,7 @@ pub const fn from_size_align(size: usize, align: usize) -> Result<Self, LayoutEr
     /// This function is unsafe as it does not verify the preconditions from
     /// [`Layout::from_size_align`].
     #[stable(feature = "alloc_layout", since = "1.28.0")]
-    #[rustc_const_stable(feature = "alloc_layout", since = "1.28.0")]
+    #[rustc_const_stable(feature = "alloc_layout", since = "1.36.0")]
     #[inline]
     pub const unsafe fn from_size_align_unchecked(size: usize, align: usize) -> Self {
         // SAFETY: the caller must ensure that `align` is greater than zero.