Skip to content

Commit 7c83a04

Browse files
SmartPointer derive-macro
Co-authored-by: Wedson Almeida Filho <walmeida@microsoft.com>
1 parent 12ec5b7 commit 7c83a04

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/src/marker.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1018,3 +1018,12 @@ pub trait FnPtr: Copy + Clone {
10181018
#[lang = "fn_ptr_addr"]
10191019
fn addr(self) -> *const ();
10201020
}
1021+
1022+
/// Derive macro generating impls of traits related to smart pointers.
1023+
#[cfg(not(bootstrap))]
1024+
#[rustc_builtin_macro]
1025+
#[allow_internal_unstable(dispatch_from_dyn, coerce_unsized, unsize)]
1026+
#[unstable(feature = "derive_smart_pointer", issue = "123430")]
1027+
pub macro SmartPointer($item:item) {
1028+
/* compiler built-in */
1029+
}

0 commit comments

Comments
 (0)