Skip to content

Commit cd1b6d0

Browse files
authored
Rollup merge of rust-lang#107943 - compiler-errors:document-pointer-like, r=jyn514
Document `PointerLike` I forgot to document this, and even though it's currently more of an implementation detail, the old doc was kinda embarrassing 😅
2 parents bddcbcd + cca82fd commit cd1b6d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/core/src/marker.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,10 @@ pub trait Destruct {}
871871
#[rustc_deny_explicit_impl]
872872
pub trait Tuple {}
873873

874-
/// A marker for things
874+
/// A marker for pointer-like types.
875+
///
876+
/// All types that have the same size and alignment as a `usize` or
877+
/// `*const ()` automatically implement this trait.
875878
#[unstable(feature = "pointer_like_trait", issue = "none")]
876879
#[cfg_attr(bootstrap, lang = "pointer_sized")]
877880
#[cfg_attr(not(bootstrap), lang = "pointer_like")]

0 commit comments

Comments
 (0)