From 1bb8bdeeb987f7d47b5e5ada48676b20e67655b3 Mon Sep 17 00:00:00 2001 From: Ding Xiang Fei Date: Sat, 5 Oct 2024 17:44:53 +0800 Subject: [PATCH] s/SmartPointer/CoerceReferent/g move derive_smart_pointer into removed set --- core/src/marker.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/marker.rs b/core/src/marker.rs index aed6be4c6277b..de67d7f0c89fe 100644 --- a/core/src/marker.rs +++ b/core/src/marker.rs @@ -1063,10 +1063,11 @@ pub trait FnPtr: Copy + Clone { } /// Derive macro generating impls of traits related to smart pointers. -#[rustc_builtin_macro(SmartPointer, attributes(pointee))] +#[rustc_builtin_macro(CoercePointee, attributes(pointee))] #[allow_internal_unstable(dispatch_from_dyn, coerce_unsized, unsize)] -#[unstable(feature = "derive_smart_pointer", issue = "123430")] -pub macro SmartPointer($item:item) { +#[unstable(feature = "derive_coerce_pointee", issue = "123430")] +#[cfg(not(bootstrap))] +pub macro CoercePointee($item:item) { /* compiler built-in */ }