diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-05-25 20:21:29 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-05-27 11:19:02 +0300 |
| commit | 6e8e4f847c2ea02fec021ea15dfb2de6beac797a (patch) | |
| tree | 7831f2de833ae0151217710dc87b2ba03a3bc128 /src/libcore/mem.rs | |
| parent | 07503dfb8bd60e2047a0a5083dd5377f9f14b77d (diff) | |
| download | rust-6e8e4f847c2ea02fec021ea15dfb2de6beac797a.tar.gz rust-6e8e4f847c2ea02fec021ea15dfb2de6beac797a.zip | |
Remove #[cfg(stage0)] items.
Diffstat (limited to 'src/libcore/mem.rs')
| -rw-r--r-- | src/libcore/mem.rs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 173b73fdb09..7749d053285 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -95,29 +95,12 @@ pub fn size_of<T>() -> usize { /// /// assert_eq!(4, mem::size_of_val(&5i32)); /// ``` -#[cfg(not(stage0))] #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn size_of_val<T: ?Sized>(val: &T) -> usize { unsafe { intrinsics::size_of_val(val) } } -/// Returns the size of the type that `_val` points to in bytes. -/// -/// # Examples -/// -/// ``` -/// use std::mem; -/// -/// assert_eq!(4, mem::size_of_val(&5i32)); -/// ``` -#[cfg(stage0)] -#[inline] -#[stable(feature = "rust1", since = "1.0.0")] -pub fn size_of_val<T>(_val: &T) -> usize { - size_of::<T>() -} - /// 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. @@ -144,29 +127,12 @@ pub fn min_align_of<T>() -> usize { /// /// assert_eq!(4, mem::min_align_of_val(&5i32)); /// ``` -#[cfg(not(stage0))] #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize { unsafe { intrinsics::min_align_of_val(val) } } -/// Returns the ABI-required minimum alignment of the type of the value that `_val` points to -/// -/// # Examples -/// -/// ``` -/// use std::mem; -/// -/// assert_eq!(4, mem::min_align_of_val(&5i32)); -/// ``` -#[cfg(stage0)] -#[inline] -#[stable(feature = "rust1", since = "1.0.0")] -pub fn min_align_of_val<T>(_val: &T) -> usize { - min_align_of::<T>() -} - /// Returns the alignment in memory for a type. /// /// This function will return the alignment, in bytes, of a type in memory. If the alignment |
