diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-11-12 12:02:50 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-12 12:02:50 +0530 |
| commit | 4b0b89827d9d4b4ba44623d0b798be10a7277826 (patch) | |
| tree | f30498befd008327145ee894113484e675f62ea8 /library/std/src/prelude/v1.rs | |
| parent | b0c6527912cee113b29a33d7db0e801a58a94de5 (diff) | |
| parent | a052f2cce1df8ac5ac9fcd104c948545f8b5f2f4 (diff) | |
| download | rust-4b0b89827d9d4b4ba44623d0b798be10a7277826.tar.gz rust-4b0b89827d9d4b4ba44623d0b798be10a7277826.zip | |
Rollup merge of #102049 - fee1-dead-contrib:derive_const, r=oli-obk
Add the `#[derive_const]` attribute Closes #102371. This is a minimal patchset for the attribute to work. There are no restrictions on what traits this attribute applies to. r? `````@oli-obk`````
Diffstat (limited to 'library/std/src/prelude/v1.rs')
| -rw-r--r-- | library/std/src/prelude/v1.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs index 36d9e8921ef..d5ac16e6b94 100644 --- a/library/std/src/prelude/v1.rs +++ b/library/std/src/prelude/v1.rs @@ -65,6 +65,10 @@ pub use core::prelude::v1::alloc_error_handler; #[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", |
