Skip to content

Commit e51d7a5

Browse files
authored
Rollup merge of rust-lang#145593 - RalfJung:unsafepinned-raw_get, r=Mark-Simulacrum
UnsafePinned::raw_get: sync signature with get This was forgotten in rust-lang#142162. Tracking issue: rust-lang#125735.
2 parents 1449934 + 2cad529 commit e51d7a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)