Skip to content

Update for field reordering - #43

Merged
Gankra merged 2 commits into
rust-lang:masterfrom
bennyyip:master
Dec 4, 2017
Merged

Gankra merged 2 commits into
rust-lang:masterfrom
bennyyip:master

Conversation

@bennyyip

Copy link
Copy Markdown
Contributor

@Gankra

Gankra commented Dec 4, 2017

Copy link
Copy Markdown
Contributor

Hey sorry for the delay! I think it would be better to just remove the note altogether? I think I just added this to avoid getting complaints about "why doesn't the compiler do this the book said so!"

what do you think?

@bennyyip

bennyyip commented Dec 4, 2017

Copy link
Copy Markdown
Contributor Author

Great idea! Moreover, maybe we should replace it with something like: "Rust compiler does field reordering when not using repr(c)", make it more clear to the reader.

@Gankra

Gankra commented Dec 4, 2017

Copy link
Copy Markdown
Contributor

I think that's the whole point of this section, (and the one on repr(C)), so I don't think that will be necessary.

@bennyyip

bennyyip commented Dec 4, 2017

Copy link
Copy Markdown
Contributor Author

Ok, I removed the notes.

@Gankra Gankra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants