Skip to content

Commit

Permalink
SmartPointer derive-macro
Browse files Browse the repository at this point in the history
Co-authored-by: Wedson Almeida Filho <walmeida@microsoft.com>
  • Loading branch information
dingxiangfei2009 and wedsonaf committed Jun 23, 2024
1 parent 12ec5b7 commit 7c83a04
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1018,3 +1018,12 @@ pub trait FnPtr: Copy + Clone {
#[lang = "fn_ptr_addr"]
fn addr(self) -> *const ();
}

/// Derive macro generating impls of traits related to smart pointers.
#[cfg(not(bootstrap))]
#[rustc_builtin_macro]
#[allow_internal_unstable(dispatch_from_dyn, coerce_unsized, unsize)]
#[unstable(feature = "derive_smart_pointer", issue = "123430")]
pub macro SmartPointer($item:item) {
/* compiler built-in */
}

0 comments on commit 7c83a04

Please sign in to comment.