about summary refs log tree commit diff
path: root/library/std/src/prelude/v1.rs
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-09-20 11:55:07 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-09-20 11:57:58 +0000
commita052f2cce1df8ac5ac9fcd104c948545f8b5f2f4 (patch)
tree291a1724a5276b99ec3eeee18d7231724757f6ea /library/std/src/prelude/v1.rs
parent4af79ccd5e23c7cbaabcd7aefdda3b715abde606 (diff)
downloadrust-a052f2cce1df8ac5ac9fcd104c948545f8b5f2f4.tar.gz
rust-a052f2cce1df8ac5ac9fcd104c948545f8b5f2f4.zip
Add the `#[derive_const]` attribute
Diffstat (limited to 'library/std/src/prelude/v1.rs')
-rw-r--r--library/std/src/prelude/v1.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs
index 0226c4d7a25..93f4a17bbfc 100644
--- a/library/std/src/prelude/v1.rs
+++ b/library/std/src/prelude/v1.rs
@@ -62,6 +62,10 @@ pub use core::prelude::v1::{RustcDecodable, RustcEncodable};
 #[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
 pub use core::prelude::v1::{bench, derive, global_allocator, test, test_case};
 
+#[unstable(feature = "derive_const", issue = "none")]
+#[cfg(not(bootstrap))]
+pub use core::prelude::v1::derive_const;
+
 // Do not `doc(no_inline)` either.
 #[unstable(
     feature = "cfg_accessible",