2 ms·
It’s partly by design and partly because it’s evolving. the “by design” part is because Rust allows for packing structs in an order independent way. This is a
by dagmx 4y ago
It’s partly by design and partly because it’s evolving.
the “by design” part is because Rust allows for packing structs in an order independent way. This is a nice optimization but it’s not something that is currently stable between versions.
- thayne 4y agoMore generally, stabilizing the ABI can prevent future optimization. Also, including lifetime information in the ABI is a hard problem thay hasn't been solved yet, and you can't have generics in an exposed ABI.