Skip to content

Commit d6403d9

Browse files
committed
fix(core): set_ptr_value was replaced by with_metaddata_of
<rust-lang/rust#95249> This method is a part of the `set_ptr_value` unstable feature.
1 parent 8e2b1f8 commit d6403d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/r3_core/src/hunk.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl<System: raw::KernelBase + cfg::KernelStatic, T: ?Sized> Hunk<System, T> {
287287
/// Get a raw pointer to the hunk's contents.
288288
#[inline]
289289
pub fn as_ptr(this: Self) -> *const T {
290-
this.offset.set_ptr_value(Self::untyped_hunk(this).as_ptr())
290+
(Self::untyped_hunk(this).as_ptr() as *const u8).with_metadata_of(this.offset)
291291
}
292292

293293
/// Get a raw pointer to the raw bytes of the hunk.

0 commit comments

Comments
 (0)