Silence a deprecation warning
This commit is contained in:
parent
954fc71962
commit
97633f814d
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue