@@ -1190,7 +1190,6 @@ pub trait FnPtr: Copy + Clone {
11901190///
11911191/// By using the macro, the following example will compile:
11921192/// ```
1193- /// #![feature(derive_coerce_pointee)]
11941193/// use std::marker::CoercePointee;
11951194/// use std::ops::Deref;
11961195///
@@ -1237,7 +1236,7 @@ pub trait FnPtr: Copy + Clone {
12371236/// type as a receiver are dyn-compatible. For example, this compiles:
12381237///
12391238/// ```
1240- /// #![feature(arbitrary_self_types, derive_coerce_pointee )]
1239+ /// #![feature(arbitrary_self_types)]
12411240/// use std::marker::CoercePointee;
12421241/// use std::ops::Deref;
12431242///
@@ -1299,7 +1298,6 @@ pub trait FnPtr: Copy + Clone {
12991298/// If the type has multiple type parameters, then you must explicitly specify which one should be
13001299/// used for dynamic dispatch. For example:
13011300/// ```
1302- /// # #![feature(derive_coerce_pointee)]
13031301/// # use std::marker::{CoercePointee, PhantomData};
13041302/// #[derive(CoercePointee)]
13051303/// #[repr(transparent)]
@@ -1314,7 +1312,6 @@ pub trait FnPtr: Copy + Clone {
13141312///
13151313/// A custom implementation of the `Rc` type:
13161314/// ```
1317- /// #![feature(derive_coerce_pointee)]
13181315/// use std::marker::CoercePointee;
13191316/// use std::ops::Deref;
13201317/// use std::ptr::NonNull;
@@ -1371,7 +1368,7 @@ pub trait FnPtr: Copy + Clone {
13711368#[ rustc_builtin_macro( CoercePointee , attributes( pointee) ) ]
13721369#[ allow_internal_unstable( dispatch_from_dyn, coerce_unsized, unsize, coerce_pointee_validated) ]
13731370#[ rustc_diagnostic_item = "CoercePointee" ]
1374- #[ unstable ( feature = "derive_coerce_pointee" , issue = "123430 " ) ]
1371+ #[ stable ( feature = "derive_coerce_pointee" , since = "CURRENT_RUSTC_VERSION " ) ]
13751372pub macro CoercePointee ( $item: item) {
13761373 /* compiler built-in */
13771374}
0 commit comments