diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-06-25 13:29:41 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-06-25 13:29:41 -0700 |
| commit | da470ff5b8b970c90b4dce3885a2908d477c1021 (patch) | |
| tree | f65aa2d105f18cdeb79321a37e47e26a5f592149 /src/libcore/sys.rs | |
| parent | 44d0a061be0ec9cae51c61b7bb335e8c4b8c6cf5 (diff) | |
| parent | fad307d7b4aa5e7ff6cf30194b069062aaad1a89 (diff) | |
Merge
Diffstat (limited to 'src/libcore/sys.rs')
| -rw-r--r-- | src/libcore/sys.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs index 53e8e4017ba..771107cd1a7 100644 --- a/src/libcore/sys.rs +++ b/src/libcore/sys.rs @@ -52,7 +52,7 @@ pure fn get_type_desc<T>() -> *type_desc { #[doc = "Returns the size of a type"] #[inline(always)] -pure fn size_of<T>() -> uint unsafe { +pure fn size_of<T>() -> uint { unchecked { rusti::size_of::<T>() } } @@ -62,12 +62,12 @@ Returns the ABI-required minimum alignment of a type This is the alignment used for struct fields. It may be smaller than the preferred alignment. "] -pure fn min_align_of<T>() -> uint unsafe { +pure fn min_align_of<T>() -> uint { unchecked { rusti::min_align_of::<T>() } } #[doc = "Returns the preferred alignment of a type"] -pure fn pref_align_of<T>() -> uint unsafe { +pure fn pref_align_of<T>() -> uint { unchecked { rusti::pref_align_of::<T>() } } |
