about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-04-27 15:40:40 -0700
committerBrian Anderson <banderson@mozilla.com>2012-04-27 15:40:43 -0700
commit0be41ce02b2313bb75d68d3828680ca88cf44c27 (patch)
treecce317af14eaea7b5807678837c7ccde297e72b8 /src/libcore
parente85fc9bf004487dd8556c7174b436fe8e2345625 (diff)
downloadrust-0be41ce02b2313bb75d68d3828680ca88cf44c27.tar.gz
rust-0be41ce02b2313bb75d68d3828680ca88cf44c27.zip
rustc: Remove old align_of intrinsic
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/sys.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs
index eba700044c3..be3bab6ac2e 100644
--- a/src/libcore/sys.rs
+++ b/src/libcore/sys.rs
@@ -26,7 +26,8 @@ native mod rustrt {
 native mod rusti {
     fn get_tydesc<T>() -> *();
     fn size_of<T>() -> uint;
-    fn align_of<T>() -> uint;
+    fn pref_align_of<T>() -> uint;
+    fn min_align_of<T>() -> uint;
 }
 
 #[doc = "
@@ -51,15 +52,12 @@ This is the alignment used for struct fields. It may be smaller
 than the preferred alignment.
 "]
 fn min_align_of<T>() -> uint unsafe {
-    // FIXME: use rusti::min_align_of after snapshot
-    // rusti::align_of::<T>()
-    fail "FIXME: uncomment the above line to use min_align_of";
+    rusti::min_align_of::<T>()
 }
 
 #[doc = "Returns the preferred alignment of a type"]
 fn pref_align_of<T>() -> uint unsafe {
-    // FIXME: use rusti::pref_align_of after snapshot
-    rusti::align_of::<T>()
+    rusti::pref_align_of::<T>()
 }
 
 #[doc = "Returns the refcount of a shared box"]