about summary refs log tree commit diff
path: root/library/core/src/alloc/layout.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-12-02 18:03:29 +0100
committerRalf Jung <post@ralfj.de>2024-12-02 20:18:25 +0100
commit2b88e4c7162573e97820d75bee4d3728076d34a8 (patch)
tree38b59aa82965b5bb74cb63a5b09e9455fd39b952 /library/core/src/alloc/layout.rs
parent3bff51ea912d4dfd9caa1e3bc6f68352618208a7 (diff)
downloadrust-2b88e4c7162573e97820d75bee4d3728076d34a8.tar.gz
rust-2b88e4c7162573e97820d75bee4d3728076d34a8.zip
stabilize const_{size,align}_of_val
Diffstat (limited to 'library/core/src/alloc/layout.rs')
-rw-r--r--library/core/src/alloc/layout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs
index 60936da2e0b..d884fa69efb 100644
--- a/library/core/src/alloc/layout.rs
+++ b/library/core/src/alloc/layout.rs
@@ -179,6 +179,7 @@ impl Layout {
     /// or other unsized type like a slice).
     #[stable(feature = "alloc_layout", since = "1.28.0")]
     #[rustc_const_unstable(feature = "const_alloc_layout", issue = "67521")]
+    #[rustc_const_stable_indirect]
     #[must_use]
     #[inline]
     pub const fn for_value<T: ?Sized>(t: &T) -> Self {
@@ -215,7 +216,6 @@ impl Layout {
     /// [trait object]: ../../book/ch17-02-trait-objects.html
     /// [extern type]: ../../unstable-book/language-features/extern-types.html
     #[unstable(feature = "layout_for_ptr", issue = "69835")]
-    #[rustc_const_unstable(feature = "layout_for_ptr", issue = "69835")]
     #[must_use]
     pub const unsafe fn for_value_raw<T: ?Sized>(t: *const T) -> Self {
         // SAFETY: we pass along the prerequisites of these functions to the caller