From ca1defc40bdd09850a37acfa828628bdbda719cb Mon Sep 17 00:00:00 2001 From: Zachary S Date: Sat, 14 Feb 2026 22:10:01 -0600 Subject: [PATCH] Update UnsafeUnpin impls for extern types Also updates the marker_impls macro docs to use PointeeSized bound, as most uses of the macro now do. --- library/core/src/marker.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 7187c71799b9..818dad6bce2f 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -46,8 +46,8 @@ /// marker_impls! { /// MarkerTrait for /// u8, i8, -/// {T: ?Sized} *const T, -/// {T: ?Sized} *mut T, +/// {T: PointeeSized} *const T, +/// {T: PointeeSized} *mut T, /// {T: MarkerTrait} PhantomData, /// u32, /// } @@ -931,15 +931,15 @@ impl !Freeze for UnsafeCell {} pub unsafe auto trait UnsafeUnpin {} #[unstable(feature = "unsafe_unpin", issue = "125735")] -impl !UnsafeUnpin for UnsafePinned {} +impl !UnsafeUnpin for UnsafePinned {} marker_impls! { #[unstable(feature = "unsafe_unpin", issue = "125735")] unsafe UnsafeUnpin for - {T: ?Sized} PhantomData, - {T: ?Sized} *const T, - {T: ?Sized} *mut T, - {T: ?Sized} &T, - {T: ?Sized} &mut T, + {T: PointeeSized} PhantomData, + {T: PointeeSized} *const T, + {T: PointeeSized} *mut T, + {T: PointeeSized} &T, + {T: PointeeSized} &mut T, } /// Types that do not require any pinning guarantees.