Skip to content

Commit 1d02056

Browse files
authored
Rollup merge of #145593 - RalfJung:unsafepinned-raw_get, r=Mark-Simulacrum
UnsafePinned::raw_get: sync signature with get This was forgotten in #142162. Tracking issue: #125735.
2 parents 25b81bf + c2e16cb commit 1d02056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/pin/unsafe_pinned.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ impl<T: ?Sized> UnsafePinned<T> {
120120
#[inline(always)]
121121
#[must_use]
122122
#[unstable(feature = "unsafe_pinned", issue = "125735")]
123-
pub const fn raw_get(this: *const Self) -> *const T {
124-
this as *const T
123+
pub const fn raw_get(this: *const Self) -> *mut T {
124+
this as *const T as *mut T
125125
}
126126

127127
/// Gets a mutable pointer to the wrapped value.

0 commit comments

Comments
 (0)