From 0f6d4aa786e565c91df2f361dfb3bee5b202bdca Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Fri, 26 Jun 2015 15:00:31 -0700 Subject: [PATCH] core: fix deprecation since version of align_of_min. These will first be deprecated in 1.2.0, not 1.1.0. --- src/libcore/mem.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 4177e0666e3..b53b61e5173 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -155,7 +155,7 @@ pub fn size_of_val(val: &T) -> usize { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[deprecated(reason = "use `align_of` instead", since = "1.1.0")] +#[deprecated(reason = "use `align_of` instead", since = "1.2.0")] pub fn min_align_of() -> usize { unsafe { intrinsics::min_align_of::() } } @@ -171,7 +171,7 @@ pub fn min_align_of() -> usize { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[deprecated(reason = "use `align_of_val` instead", since = "1.1.0")] +#[deprecated(reason = "use `align_of_val` instead", since = "1.2.0")] pub fn min_align_of_val(val: &T) -> usize { unsafe { intrinsics::min_align_of_val(val) } }