Skip to content

Commit

Permalink
Silence a deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Nov 6, 2019
1 parent 954fc71 commit 97633f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/mem/mod.rs
Expand Up @@ -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)
}
Expand Down

0 comments on commit 97633f8

Please sign in to comment.