Resolve safe_packed_borrows lint renamed to unaligned_references

warning: lint `safe_packed_borrows` has been renamed to `unaligned_references`
        --> test_suite/tests/test_macros.rs:1926:8
         |
    1926 | #[deny(safe_packed_borrows)]
         |        ^^^^^^^^^^^^^^^^^^^ help: use the new name: `unaligned_references`
         |
         = note: `#[warn(renamed_and_removed_lints)]` on by default
This commit is contained in:
David Tolnay 2021-04-08 20:08:16 -07:00
parent 6c3bf7a2fc
commit b53ebef438
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1923,7 +1923,7 @@ fn test_internally_tagged_newtype_variant_containing_unit_struct() {
);
}
#[deny(safe_packed_borrows)]
#[deny(unaligned_references)]
#[test]
fn test_packed_struct_can_derive_serialize() {
#[derive(Copy, Clone, Serialize)]