Skip to content

Commit

Permalink
Update ui test to nightly-2021-12-12
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Dec 12, 2021
1 parent fa23406 commit 27dce27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ui/pin_project/unaligned_references.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ note: the lint level is defined here
= 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 <https://github.com/rust-lang/rust/issues/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)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)

error: reference to packed field is unaligned
--> tests/ui/pin_project/unaligned_references.rs:20:13
Expand All @@ -22,3 +23,4 @@ error: reference to packed field is unaligned
= 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 <https://github.com/rust-lang/rust/issues/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)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)

0 comments on commit 27dce27

Please sign in to comment.