mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
Support the new CoercePointee derive
This commit is contained in:
parent
061d257e90
commit
ce323627c5
8 changed files with 767 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue