Gilnaa / memoffset

offsetof for Rust
MIT License
224 stars 29 forks source link

remove confusing comment #28

Closed RalfJung closed 5 years ago

RalfJung commented 5 years ago

@Gilnaa are you okay just removing that?

Gilnaa commented 5 years ago

I think this comment originally meant that unless this struct is "C", you cannot assume anything about the value of offset_of, as the compiler can rearrange the struct and that can change between compiler versions. (and the comment doesn't really convey that)

Not sure why packed was added.

I'm okay with just removing it