From c2e16cbcb424f7c1ff54453ffdf5b0a880ea32a4 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 19 Aug 2025 08:25:09 +0200 Subject: [PATCH] UnsafePinned::raw_get: sync signature with get --- library/core/src/pin/unsafe_pinned.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/pin/unsafe_pinned.rs b/library/core/src/pin/unsafe_pinned.rs index b18b5d7c9ec0d..ede6e0d6106bd 100644 --- a/library/core/src/pin/unsafe_pinned.rs +++ b/library/core/src/pin/unsafe_pinned.rs @@ -120,8 +120,8 @@ impl UnsafePinned { #[inline(always)] #[must_use] #[unstable(feature = "unsafe_pinned", issue = "125735")] - pub const fn raw_get(this: *const Self) -> *const T { - this as *const T + pub const fn raw_get(this: *const Self) -> *mut T { + this as *const T as *mut T } /// Gets a mutable pointer to the wrapped value.