From 878d3b3171d98f5c68c826d99d30986d60f4f7bb Mon Sep 17 00:00:00 2001 From: CAD97 Date: Tue, 17 Dec 2019 14:55:46 -0500 Subject: [PATCH] Mark Layout::new as const stable --- src/libcore/alloc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index b049a446cdcd0..ceb4a73db61cd 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -118,6 +118,7 @@ impl Layout { /// Constructs a `Layout` suitable for holding a value of type `T`. #[stable(feature = "alloc_layout", since = "1.28.0")] + #[rustc_const_stable(feature = "alloc_layout_const_new", since = "1.42.0")] #[inline] pub const fn new() -> Self { let (size, align) = size_align::();