about summary refs log tree commit diff
path: root/src/libcore/sys.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/sys.rs
parentefa6675f1d632f5d524f4a7a18838c6ee1c0c447 (diff)
downloadrust-2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960.tar.gz
rust-2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960.zip
Replace uses of 'unchecked' with 'unsafe'
Diffstat (limited to 'src/libcore/sys.rs')
-rw-r--r--src/libcore/sys.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs
index 1adadc5eba6..5d5ccf5e42c 100644
--- a/src/libcore/sys.rs
+++ b/src/libcore/sys.rs
@@ -62,13 +62,13 @@ pure fn shape_le<T:Ord>(x1: &T, x2: &T) -> bool {
  */
 #[inline(always)]
 pure fn get_type_desc<T>() -> *TypeDesc {
-    unchecked { rusti::get_tydesc::<T>() as *TypeDesc }
+    unsafe { rusti::get_tydesc::<T>() as *TypeDesc }
 }
 
 /// Returns the size of a type
 #[inline(always)]
 pure fn size_of<T>() -> uint {
-    unchecked { rusti::size_of::<T>() }
+    unsafe { rusti::size_of::<T>() }
 }
 
 /**
@@ -79,13 +79,13 @@ pure fn size_of<T>() -> uint {
  */
 #[inline(always)]
 pure fn min_align_of<T>() -> uint {
-    unchecked { rusti::min_align_of::<T>() }
+    unsafe { rusti::min_align_of::<T>() }
 }
 
 /// Returns the preferred alignment of a type
 #[inline(always)]
 pure fn pref_align_of<T>() -> uint {
-    unchecked { rusti::pref_align_of::<T>() }
+    unsafe { rusti::pref_align_of::<T>() }
 }
 
 /// Returns the refcount of a shared box (as just before calling this)