Skip to content

Commit 6e1196e

Browse files
committed
Correct documentation for PointerLike about automatic implementation.
Since <rust-lang#133226>, it is no longer automatically implemented, but must be manually implemented.
1 parent bad2aa4 commit 6e1196e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/marker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -972,8 +972,8 @@ pub trait Tuple {}
972972

973973
/// A marker for pointer-like types.
974974
///
975-
/// All types that have the same size and alignment as a `usize` or
976-
/// `*const ()` automatically implement this trait.
975+
/// This trait may only be implemented for types that have the same size and alignment as a
976+
/// [`usize`] or [`*const ()`](pointer).
977977
#[unstable(feature = "pointer_like_trait", issue = "none")]
978978
#[lang = "pointer_like"]
979979
#[diagnostic::on_unimplemented(

0 commit comments

Comments
 (0)