diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index 37672888d0127..163f9170b8bfb 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -120,6 +120,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::();