Skip to content

Commit 0f5a13a

Browse files
Rename PointerSized to PointerLike
1 parent d5a9cb5 commit 0f5a13a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

core/src/marker.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -872,13 +872,14 @@ pub trait Destruct {}
872872
pub trait Tuple {}
873873

874874
/// A marker for things
875-
#[unstable(feature = "pointer_sized_trait", issue = "none")]
876-
#[lang = "pointer_sized"]
875+
#[unstable(feature = "pointer_like_trait", issue = "none")]
876+
#[cfg_attr(bootstrap, lang = "pointer_sized")]
877+
#[cfg_attr(not(bootstrap), lang = "pointer_like")]
877878
#[rustc_on_unimplemented(
878-
message = "`{Self}` needs to be a pointer-sized type",
879-
label = "`{Self}` needs to be a pointer-sized type"
879+
message = "`{Self}` needs to have the same alignment and size as a pointer",
880+
label = "`{Self}` needs to be a pointer-like type"
880881
)]
881-
pub trait PointerSized {}
882+
pub trait PointerLike {}
882883

883884
/// Implementations of `Copy` for primitive types.
884885
///

0 commit comments

Comments
 (0)