@@ -1125,7 +1125,6 @@ pub trait FnPtr: Copy + Clone {
11251125///
11261126/// By using the macro, the following example will compile:
11271127/// ```
1128- /// #![feature(derive_coerce_pointee)]
11291128/// use std::marker::CoercePointee;
11301129/// use std::ops::Deref;
11311130///
@@ -1172,7 +1171,7 @@ pub trait FnPtr: Copy + Clone {
11721171/// type as a receiver are dyn-compatible. For example, this compiles:
11731172///
11741173/// ```
1175- /// #![feature(arbitrary_self_types, derive_coerce_pointee )]
1174+ /// #![feature(arbitrary_self_types)]
11761175/// use std::marker::CoercePointee;
11771176/// use std::ops::Deref;
11781177///
@@ -1234,7 +1233,6 @@ pub trait FnPtr: Copy + Clone {
12341233/// If the type has multiple type parameters, then you must explicitly specify which one should be
12351234/// used for dynamic dispatch. For example:
12361235/// ```
1237- /// # #![feature(derive_coerce_pointee)]
12381236/// # use std::marker::{CoercePointee, PhantomData};
12391237/// #[derive(CoercePointee)]
12401238/// #[repr(transparent)]
@@ -1249,7 +1247,6 @@ pub trait FnPtr: Copy + Clone {
12491247///
12501248/// A custom implementation of the `Rc` type:
12511249/// ```
1252- /// #![feature(derive_coerce_pointee)]
12531250/// use std::marker::CoercePointee;
12541251/// use std::ops::Deref;
12551252/// use std::ptr::NonNull;
@@ -1306,7 +1303,7 @@ pub trait FnPtr: Copy + Clone {
13061303#[ rustc_builtin_macro( CoercePointee , attributes( pointee) ) ]
13071304#[ allow_internal_unstable( dispatch_from_dyn, coerce_unsized, unsize, coerce_pointee_validated) ]
13081305#[ rustc_diagnostic_item = "CoercePointee" ]
1309- #[ unstable ( feature = "derive_coerce_pointee" , issue = "123430 " ) ]
1306+ #[ stable ( feature = "derive_coerce_pointee" , since = "CURRENT_RUSTC_VERSION " ) ]
13101307pub macro CoercePointee ( $item: item) {
13111308 /* compiler built-in */
13121309}
0 commit comments