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

remove overzealous Box<ZeroSizeType> optimization #44553

Merged

Conversation

qmx
Copy link
Member

@qmx qmx commented Sep 13, 2017

No description provided.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @eddyb (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@eddyb
Copy link
Member

eddyb commented Sep 13, 2017

r? @arielb1

@rust-highfive rust-highfive assigned arielb1 and unassigned eddyb Sep 13, 2017
@arielb1
Copy link
Contributor

arielb1 commented Sep 14, 2017

@bors r+

Let's see whether this is important in practice.

@bors
Copy link
Contributor

bors commented Sep 14, 2017

📌 Commit 916ccc5 has been approved by arielb1

@bors
Copy link
Contributor

bors commented Sep 14, 2017

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Sep 14, 2017

📌 Commit 916ccc5 has been approved by arielb1

@alexcrichton alexcrichton added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 14, 2017
TimNN added a commit to TimNN/rust that referenced this pull request Sep 17, 2017
…-szero-optimization, r=arielb1

remove overzealous Box<ZeroSizeType> optimization
TimNN added a commit to TimNN/rust that referenced this pull request Sep 17, 2017
…-szero-optimization, r=arielb1

remove overzealous Box<ZeroSizeType> optimization
TimNN added a commit to TimNN/rust that referenced this pull request Sep 17, 2017
…-szero-optimization, r=arielb1

remove overzealous Box<ZeroSizeType> optimization
bors added a commit that referenced this pull request Sep 17, 2017
Rollup of 17 pull requests

- Successful merges: #44073, #44088, #44381, #44397, #44509, #44533, #44549, #44553, #44562, #44567, #44595, #44604, #44617, #44622, #44630, #44639, #44647
- Failed merges:
@bors bors merged commit 916ccc5 into rust-lang:master Sep 17, 2017
@bstrie
Copy link
Contributor

bstrie commented Sep 20, 2017

What bug is this fixing? "Overzealous" how?

@eddyb
Copy link
Member

eddyb commented Sep 20, 2017

@bstrie This was leftover cruft from before @arielb1 moved drop glue to MIR shims. All it does is skip very little code, for a very special case. It was annoying because of two reasons:

  • it was used from monomorphize::resolve which @qmx was trying to move to librustc and generalize (to use in MIR inlining), and if you have a type parameter you can't check its size
  • it's a Box special case, the fewer of those, the better

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.

7 participants