Gilnaa / memoffset

offsetof for Rust
MIT License
224 stars 29 forks source link

add support for using raw_ref macros #43

Closed RalfJung closed 4 years ago

RalfJung commented 4 years ago

With https://github.com/rust-lang/rust/issues/73394 available on nightly, we can finally provide an actually UB-free version of offset_of!. :)

RalfJung commented 4 years ago

(The Miri job fails because raw_const is not yet available in the latest nightly with Miri.)

Gilnaa commented 4 years ago

Well, that sure is good enough for me. Thank you!