apply clippy::borrow-as-ptr lint
This commit is contained in:
+1
-1
@@ -865,7 +865,7 @@ impl DSO {
|
||||
};
|
||||
|
||||
// Ensure the DTV entry is initialised.
|
||||
unsafe { __tls_get_addr(&mut tls_index) };
|
||||
unsafe { __tls_get_addr(&raw mut tls_index) };
|
||||
|
||||
*resolver = __tlsdesc_dynamic as *const () as usize;
|
||||
*descriptor = Box::into_raw(Box::new(TlsDescriptor {
|
||||
|
||||
+1
-1
@@ -523,7 +523,7 @@ impl Linker {
|
||||
ti_offset: symbol.value,
|
||||
};
|
||||
|
||||
unsafe { __tls_get_addr(&mut tls_index) }
|
||||
unsafe { __tls_get_addr(&raw mut tls_index) }
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
+1
-1
@@ -143,7 +143,7 @@ pub unsafe fn init(
|
||||
{
|
||||
const ARCH_GET_FS: usize = 0x1003;
|
||||
let mut val = 0usize;
|
||||
syscall!(ARCH_PRCTL, ARCH_GET_FS, &mut val as *mut usize);
|
||||
syscall!(ARCH_PRCTL, ARCH_GET_FS, &raw mut val);
|
||||
tp = val;
|
||||
}
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
|
||||
Reference in New Issue
Block a user