This repository has been archived by the owner on Apr 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't reference unaligned packed field
This will be an error some day. warning: reference to packed field is unaligned --> src/certs/sev/cert/mod.rs:176:47 | 176 | 1 => PublicKey::try_from(unsafe { &value.v1.body.data.key }), | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unaligned_references)]` on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #82523 <rust-lang/rust#82523> = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) Also bump the minimum stable compiler. The addr_of! macro was introduced in 1.51.0. Signed-off-by: Connor Kuehl <[email protected]>
- Loading branch information