Closed adamgreig closed 2 years ago
A recent change in Rust to deny unaligned reference by default (https://github.com/rust-lang/rust/pull/95372) caused the upstream rust build of this book to break: https://github.com/rust-lang/rust/pull/96108#issuecomment-1100646376
This PR removes the unaligned references, instead using addr_of!() to get a raw pointer to print.
addr_of!()
r? @therealprof
(rust-highfive has picked a reviewer for you, use r? to override)
Build succeeded:
A recent change in Rust to deny unaligned reference by default (https://github.com/rust-lang/rust/pull/95372) caused the upstream rust build of this book to break: https://github.com/rust-lang/rust/pull/96108#issuecomment-1100646376
This PR removes the unaligned references, instead using
addr_of!()
to get a raw pointer to print.