diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 0cd9426209f..f29cd357d6b 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -1558,17 +1558,6 @@ pub(crate) mod builtin { /* compiler built-in */ } - /// Unstable placeholder for type ascription. - #[unstable( - feature = "type_ascription", - issue = "23416", - reason = "placeholder syntax for type ascription" - )] - #[cfg(bootstrap)] - pub macro type_ascribe($expr:expr, $ty:ty) { - $expr: $ty - } - /// Unstable implementation detail of the `rustc` compiler, do not use. #[rustc_builtin_macro] #[stable(feature = "rust1", since = "1.0.0")] diff --git a/library/core/src/prelude/v1.rs b/library/core/src/prelude/v1.rs index a28d14b14a8..2d67d742c68 100644 --- a/library/core/src/prelude/v1.rs +++ b/library/core/src/prelude/v1.rs @@ -104,4 +104,5 @@ pub use crate::macros::builtin::cfg_eval; issue = "23416", reason = "placeholder syntax for type ascription" )] +#[cfg(not(bootstrap))] pub use crate::macros::builtin::type_ascribe; diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs index 4ab4229598e..a5a798078eb 100644 --- a/library/std/src/prelude/v1.rs +++ b/library/std/src/prelude/v1.rs @@ -91,6 +91,7 @@ pub use core::prelude::v1::cfg_eval; issue = "23416", reason = "placeholder syntax for type ascription" )] +#[cfg(not(bootstrap))] pub use core::prelude::v1::type_ascribe; // The file so far is equivalent to src/libcore/prelude/v1.rs,