diff options
Diffstat (limited to 'src/libcore/sys.rs')
| -rw-r--r-- | src/libcore/sys.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs index 8eee6088630..cff945ad069 100644 --- a/src/libcore/sys.rs +++ b/src/libcore/sys.rs @@ -65,6 +65,7 @@ pure fn shape_le<T:Ord>(x1: &T, x2: &T) -> bool { * Useful for calling certain function in the Rust runtime or otherwise * performing dark magick. */ +#[inline(always)] pure fn get_type_desc<T>() -> *TypeDesc { unchecked { rusti::get_tydesc::<T>() as *TypeDesc } } @@ -93,6 +94,7 @@ pure fn pref_align_of<T>() -> uint { } /// Returns the refcount of a shared box (as just before calling this) +#[inline(always)] pure fn refcount<T>(+t: @T) -> uint { unsafe { let ref_ptr: *uint = unsafe::reinterpret_cast(&t); |
