mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
Fix use of reinterpret_cast in to_mut_unsafe_ptr
This commit is contained in:
parent
512a769f6f
commit
a80b7dc709
@ -146,7 +146,7 @@ fn to_unsafe_ptr<T>(thing: &T) -> *T unsafe {
|
||||
*/
|
||||
#[inline(always)]
|
||||
fn to_mut_unsafe_ptr<T>(thing: &mut T) -> *mut T unsafe {
|
||||
unsafe::reinterpret_cast(thing)
|
||||
unsafe::reinterpret_cast(&thing)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user