Support the new CoercePointee derive

This commit is contained in:
Chayim Refael Friedman 2025-01-02 19:05:07 +02:00
parent 061d257e90
commit ce323627c5
8 changed files with 767 additions and 63 deletions

View file

@ -17,6 +17,7 @@
//! builtin_impls:
//! cell: copy, drop
//! clone: sized
//! coerce_pointee: derive, sized, unsize, coerce_unsized, dispatch_from_dyn
//! coerce_unsized: unsize
//! concat:
//! copy: clone
@ -157,6 +158,14 @@ pub mod marker {
type Discriminant;
}
// endregion:discriminant
// region:coerce_pointee
#[rustc_builtin_macro(CoercePointee, attributes(pointee))]
#[allow_internal_unstable(dispatch_from_dyn, coerce_unsized, unsize)]
pub macro CoercePointee($item:item) {
/* compiler built-in */
}
// endregion:coerce_pointee
}
// region:default