diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-07 18:02:20 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-02-07 19:05:53 +0000 |
| commit | 2b70cbb8a5935a8fbc8d52d7e8304f8eefeb2d21 (patch) | |
| tree | beebf4de8b250b53ee1fa19316ff66f701c774e9 /library/core/src | |
| parent | e1eaa2d5d4d1f5b7b89561a940718058d414e89c (diff) | |
| download | rust-2b70cbb8a5935a8fbc8d52d7e8304f8eefeb2d21.tar.gz rust-2b70cbb8a5935a8fbc8d52d7e8304f8eefeb2d21.zip | |
Rename PointerSized to PointerLike
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/marker.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 74055602ec2..e11bca5962a 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -872,13 +872,14 @@ pub trait Destruct {} pub trait Tuple {} /// A marker for things -#[unstable(feature = "pointer_sized_trait", issue = "none")] -#[lang = "pointer_sized"] +#[unstable(feature = "pointer_like_trait", issue = "none")] +#[cfg_attr(bootstrap, lang = "pointer_sized")] +#[cfg_attr(not(bootstrap), lang = "pointer_like")] #[rustc_on_unimplemented( - message = "`{Self}` needs to be a pointer-sized type", - label = "`{Self}` needs to be a pointer-sized type" + message = "`{Self}` needs to have the same alignment and size as a pointer", + label = "`{Self}` needs to be a pointer-like type" )] -pub trait PointerSized {} +pub trait PointerLike {} /// Implementations of `Copy` for primitive types. /// |
