We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1449934 + 2cad529 commit e51d7a5Copy full SHA for e51d7a5
core/src/pin/unsafe_pinned.rs
@@ -120,8 +120,8 @@ impl<T: ?Sized> UnsafePinned<T> {
120
#[inline(always)]
121
#[must_use]
122
#[unstable(feature = "unsafe_pinned", issue = "125735")]
123
- pub const fn raw_get(this: *const Self) -> *const T {
124
- this as *const T
+ pub const fn raw_get(this: *const Self) -> *mut T {
+ this as *const T as *mut T
125
}
126
127
/// Gets a mutable pointer to the wrapped value.
0 commit comments