Skip to content

Commit 7794caf

Browse files
committed
Make derive_const usable within libcore again
Also make it *only* usable on nightly
1 parent d2cc0be commit 7794caf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/src/macros/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ pub(crate) mod builtin {
16151615
/// See [the reference] for more info.
16161616
///
16171617
/// [the reference]: ../../../reference/attributes/derive.html
1618-
#[unstable(feature = "derive_const", issue = "none")]
1618+
#[unstable(feature = "derive_const", issue = "118304")]
16191619
#[rustc_builtin_macro]
16201620
pub macro derive_const($item:item) {
16211621
/* compiler built-in */

core/src/prelude/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub use crate::macros::builtin::{
8080
alloc_error_handler, bench, derive, global_allocator, test, test_case,
8181
};
8282

83-
#[unstable(feature = "derive_const", issue = "none")]
83+
#[unstable(feature = "derive_const", issue = "118304")]
8484
pub use crate::macros::builtin::derive_const;
8585

8686
#[unstable(

std/src/prelude/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub use core::prelude::v1::{
6767
alloc_error_handler, bench, derive, global_allocator, test, test_case,
6868
};
6969

70-
#[unstable(feature = "derive_const", issue = "none")]
70+
#[unstable(feature = "derive_const", issue = "118304")]
7171
pub use core::prelude::v1::derive_const;
7272

7373
// Do not `doc(no_inline)` either.

0 commit comments

Comments
 (0)