about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-08-19 08:25:09 +0200
committerRalf Jung <post@ralfj.de>2025-08-19 08:25:09 +0200
commitc2e16cbcb424f7c1ff54453ffdf5b0a880ea32a4 (patch)
tree5db98814f27dd80338f3306632deee98477823d6
parent239e8b1b47b34120287ec36b33228c1e177f0c38 (diff)
downloadrust-c2e16cbcb424f7c1ff54453ffdf5b0a880ea32a4.tar.gz
rust-c2e16cbcb424f7c1ff54453ffdf5b0a880ea32a4.zip
UnsafePinned::raw_get: sync signature with get
-rw-r--r--library/core/src/pin/unsafe_pinned.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/pin/unsafe_pinned.rs b/library/core/src/pin/unsafe_pinned.rs
index b18b5d7c9ec..ede6e0d6106 100644
--- a/library/core/src/pin/unsafe_pinned.rs
+++ b/library/core/src/pin/unsafe_pinned.rs
@@ -120,8 +120,8 @@ impl<T: ?Sized> UnsafePinned<T> {
     #[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.