summary refs log tree commit diff
path: root/src/libcore/ptr.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-18 11:17:40 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-18 11:31:57 -0700
commit2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960 (patch)
tree683f1e841f369e737e6d0c26fcafe5057531566c /src/libcore/ptr.rs
parentefa6675f1d632f5d524f4a7a18838c6ee1c0c447 (diff)
downloadrust-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.rs2
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)]