@@ -1168,7 +1168,6 @@ pub trait FnPtr: Copy + Clone {
11681168///
11691169/// By using the macro, the following example will compile:
11701170/// ```
1171- /// #![feature(derive_coerce_pointee)]
11721171/// use std::marker::CoercePointee;
11731172/// use std::ops::Deref;
11741173///
@@ -1215,7 +1214,7 @@ pub trait FnPtr: Copy + Clone {
12151214/// type as a receiver are dyn-compatible. For example, this compiles:
12161215///
12171216/// ```
1218- /// #![feature(arbitrary_self_types, derive_coerce_pointee )]
1217+ /// #![feature(arbitrary_self_types)]
12191218/// use std::marker::CoercePointee;
12201219/// use std::ops::Deref;
12211220///
@@ -1277,7 +1276,6 @@ pub trait FnPtr: Copy + Clone {
12771276/// If the type has multiple type parameters, then you must explicitly specify which one should be
12781277/// used for dynamic dispatch. For example:
12791278/// ```
1280- /// # #![feature(derive_coerce_pointee)]
12811279/// # use std::marker::{CoercePointee, PhantomData};
12821280/// #[derive(CoercePointee)]
12831281/// #[repr(transparent)]
@@ -1292,7 +1290,6 @@ pub trait FnPtr: Copy + Clone {
12921290///
12931291/// A custom implementation of the `Rc` type:
12941292/// ```
1295- /// #![feature(derive_coerce_pointee)]
12961293/// use std::marker::CoercePointee;
12971294/// use std::ops::Deref;
12981295/// use std::ptr::NonNull;
@@ -1349,7 +1346,7 @@ pub trait FnPtr: Copy + Clone {
13491346#[ rustc_builtin_macro( CoercePointee , attributes( pointee) ) ]
13501347#[ allow_internal_unstable( dispatch_from_dyn, coerce_unsized, unsize, coerce_pointee_validated) ]
13511348#[ rustc_diagnostic_item = "CoercePointee" ]
1352- #[ unstable ( feature = "derive_coerce_pointee" , issue = "123430 " ) ]
1349+ #[ stable ( feature = "derive_coerce_pointee" , since = "CURRENT_RUSTC_VERSION " ) ]
13531350pub macro CoercePointee ( $item: item) {
13541351 /* compiler built-in */
13551352}
0 commit comments