Make the Vec data structure layout match raw::Slice.#18303
Make the Vec data structure layout match raw::Slice.#18303bors merged 1 commit intorust-lang:masterfrom
Conversation
|
@cgaebel: Since |
|
Hmmm then would be make sense to mark both raw::Slice and Vec as #[repr(C)] ? |
|
@cgaebel: I don't think |
|
In the case where struct randomization isn't enabled, matching the representation of slices should allow more optimizations by LLVM. It does make sense to define it in the same order but that order being preserved is not guaranteed by the language. |
|
Maybe I'm just not understanding what you're saying, but doesn't |
|
It does guarantee that, but tagging stuff as |
Fixes #18302
r? @thestinger