diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-18 11:17:40 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-18 11:31:57 -0700 |
| commit | 2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960 (patch) | |
| tree | 683f1e841f369e737e6d0c26fcafe5057531566c /src/libcore/ptr.rs | |
| parent | efa6675f1d632f5d524f4a7a18838c6ee1c0c447 (diff) | |
| download | rust-2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960.tar.gz rust-2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960.zip | |
Replace uses of 'unchecked' with 'unsafe'
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 82eacaed606..58ccc89e88f 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -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)] |
