Replace uses of 'unchecked' with 'unsafe'
This commit is contained in:
parent
efa6675f1d
commit
2cdb23bbc0
21 changed files with 107 additions and 107 deletions
|
|
@ -47,7 +47,7 @@ extern mod rusti {
|
|||
|
||||
/// Get an unsafe pointer to a value
|
||||
#[inline(always)]
|
||||
pure fn addr_of<T>(val: T) -> *T { unchecked { rusti::addr_of(val) } }
|
||||
pure fn addr_of<T>(val: T) -> *T { unsafe { rusti::addr_of(val) } }
|
||||
|
||||
/// Get an unsafe mut pointer to a value
|
||||
#[inline(always)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue