mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 05:53:10 +00:00
Silence a deprecation warning
This commit is contained in:
parent
954fc71962
commit
97633f814d
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user