Skip to content

Commit 0f6d4aa

Browse files
committed
core: fix deprecation since version of align_of_min.
These will first be deprecated in 1.2.0, not 1.1.0.
1 parent 225b116 commit 0f6d4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/mem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
155155
/// ```
156156
#[inline]
157157
#[stable(feature = "rust1", since = "1.0.0")]
158-
#[deprecated(reason = "use `align_of` instead", since = "1.1.0")]
158+
#[deprecated(reason = "use `align_of` instead", since = "1.2.0")]
159159
pub fn min_align_of<T>() -> usize {
160160
unsafe { intrinsics::min_align_of::<T>() }
161161
}
@@ -171,7 +171,7 @@ pub fn min_align_of<T>() -> usize {
171171
/// ```
172172
#[inline]
173173
#[stable(feature = "rust1", since = "1.0.0")]
174-
#[deprecated(reason = "use `align_of_val` instead", since = "1.1.0")]
174+
#[deprecated(reason = "use `align_of_val` instead", since = "1.2.0")]
175175
pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
176176
unsafe { intrinsics::min_align_of_val(val) }
177177
}

0 commit comments

Comments
 (0)