Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use partial but correct vtable layout #53757

Merged
merged 2 commits into from
Aug 30, 2018
Merged

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Aug 28, 2018

r? @RalfJung who suggested to also do this change for nightly, not just beta

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 28, 2018
@RalfJung
Copy link
Member

You only added that more detailed layout specifically for validation, right? So this should not regress anything else?

Please add a comment in layout.rs why we do not have a more detailed layout (in particular, why the "obvious thing" you did is wrong).

@oli-obk
Copy link
Contributor Author

oli-obk commented Aug 28, 2018

There's a FIXME right below said line.

Yea, only validation and debug symbols were affected

@RalfJung
Copy link
Member

That FIXME doesn't tell me much -- in particular, it doesn't explain that even the size of the vtable, naively computed, is wrong (the thing that lead to this having to be backported, right?)

be not object safe and thus excluded from the vtable.
Increase this counter if you tried to implement this but
failed to do it without duplicating a lot of code from
other places in the compiler: 2
Copy link
Member

Choose a reason for hiding this comment

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

🤣

@RalfJung
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Aug 28, 2018

📌 Commit f318ba2 has been approved by RalfJung

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 28, 2018
@bors
Copy link
Contributor

bors commented Aug 30, 2018

⌛ Testing commit f318ba2 with merge 0e98621...

bors added a commit that referenced this pull request Aug 30, 2018
Use partial but correct vtable layout

r? @RalfJung who suggested to also do this change for nightly, not just beta
@bors
Copy link
Contributor

bors commented Aug 30, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: RalfJung
Pushing 0e98621 to master...

@bors bors merged commit f318ba2 into rust-lang:master Aug 30, 2018
@oli-obk oli-obk deleted the validation branch June 15, 2020 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants