@@ -1121,7 +1121,6 @@ pub trait FnPtr: Copy + Clone {
11211121///
11221122/// By using the macro, the following example will compile:
11231123/// ```
1124- /// #![feature(derive_coerce_pointee)]
11251124/// use std::marker::CoercePointee;
11261125/// use std::ops::Deref;
11271126///
@@ -1168,7 +1167,7 @@ pub trait FnPtr: Copy + Clone {
11681167/// type as a receiver are dyn-compatible. For example, this compiles:
11691168///
11701169/// ```
1171- /// #![feature(arbitrary_self_types, derive_coerce_pointee )]
1170+ /// #![feature(arbitrary_self_types)]
11721171/// use std::marker::CoercePointee;
11731172/// use std::ops::Deref;
11741173///
@@ -1230,7 +1229,6 @@ pub trait FnPtr: Copy + Clone {
12301229/// If the type has multiple type parameters, then you must explicitly specify which one should be
12311230/// used for dynamic dispatch. For example:
12321231/// ```
1233- /// # #![feature(derive_coerce_pointee)]
12341232/// # use std::marker::{CoercePointee, PhantomData};
12351233/// #[derive(CoercePointee)]
12361234/// #[repr(transparent)]
@@ -1245,7 +1243,6 @@ pub trait FnPtr: Copy + Clone {
12451243///
12461244/// A custom implementation of the `Rc` type:
12471245/// ```
1248- /// #![feature(derive_coerce_pointee)]
12491246/// use std::marker::CoercePointee;
12501247/// use std::ops::Deref;
12511248/// use std::ptr::NonNull;
@@ -1302,7 +1299,7 @@ pub trait FnPtr: Copy + Clone {
13021299#[ rustc_builtin_macro( CoercePointee , attributes( pointee) ) ]
13031300#[ allow_internal_unstable( dispatch_from_dyn, coerce_unsized, unsize, coerce_pointee_validated) ]
13041301#[ cfg_attr( not( test) , rustc_diagnostic_item = "CoercePointee" ) ]
1305- #[ unstable ( feature = "derive_coerce_pointee" , issue = "123430 " ) ]
1302+ #[ stable ( feature = "derive_coerce_pointee" , since = "CURRENT_RUSTC_VERSION " ) ]
13061303pub macro CoercePointee ( $item: item) {
13071304 /* compiler built-in */
13081305}
0 commit comments