Skip to content

Replace unaligned ref with raw pointer

Tim Crawford requested to merge tcrawford/hwio:unaligned-ref into master

Unaligned references currently create a warning, and will be a hard error in the future. Use the addr_of!() (Rust 1.51.0+) macro to create a raw pointer without creating an intermediate reference.

Deprecate Mmio::new() as it is unsound. These values should only be constructed by transmuting memory.

Merge request reports