From 0be41ce02b2313bb75d68d3828680ca88cf44c27 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 27 Apr 2012 15:40:40 -0700 Subject: rustc: Remove old align_of intrinsic --- src/libcore/sys.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/libcore') 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() -> *(); fn size_of() -> uint; - fn align_of() -> uint; + fn pref_align_of() -> uint; + fn min_align_of() -> 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() -> uint unsafe { - // FIXME: use rusti::min_align_of after snapshot - // rusti::align_of::() - fail "FIXME: uncomment the above line to use min_align_of"; + rusti::min_align_of::() } #[doc = "Returns the preferred alignment of a type"] fn pref_align_of() -> uint unsafe { - // FIXME: use rusti::pref_align_of after snapshot - rusti::align_of::() + rusti::pref_align_of::() } #[doc = "Returns the refcount of a shared box"] -- cgit 1.4.1-3-g733a5