offset_of! slices

6 points by fanf


goldstein

*adds “changing tail field of an unsized struct from a slice to a trait object” to my Weird Breaking Changes list*

Manishearth

... yeah i've done all kinds of weird hacks when working with DST layouts, often involving ginning up fake pointers to do math on them.

Most of that is cleaner now but there's still a lot of crud, I can't wait for the Rust dst metadata APIs to finalize