firecracker icon indicating copy to clipboard operation
firecracker copied to clipboard

Use `core::mem::offset_of!()` macro (after moving to Rust 1.77.0)

Open zulinx86 opened this issue 1 year ago • 0 comments

Derived from discussion here: https://github.com/firecracker-microvm/firecracker/pull/4492#discussion_r1526045051 After we move to Rust 1.77.0 (the current latest is 1.76.0 at the time of writing), core::mem::offset_of!() macro seems to become stable finally!! Currently, we have our own macro called offset__of!(), but thanks to the stabilization, we might be able to remove it.

zulinx86 avatar Mar 15 '24 12:03 zulinx86