Skip to content

Commit 97633f8

Browse files
committed
Silence a deprecation warning
1 parent 954fc71 commit 97633f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/mem/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ pub const fn align_of<T>() -> usize {
360360
/// ```
361361
#[inline]
362362
#[stable(feature = "rust1", since = "1.0.0")]
363+
#[allow(deprecated)]
363364
pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
364365
min_align_of_val(val)
365366
}

0 commit comments

Comments
 (0)