Silence a deprecation warning

This commit is contained in:
Oliver Scherer 2019-10-19 13:02:17 +02:00
parent 954fc71962
commit 97633f814d

View File

@ -360,6 +360,7 @@ pub const fn align_of<T>() -> usize {
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
#[allow(deprecated)]
pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
min_align_of_val(val)
}