Skip to content

remove overzealous Box<ZeroSizeType> optimization - #44553

Merged
bors merged 1 commit into
rust-lang:masterfrom
qmx:refactor-remove-overzealous-box-szero-optimization
Sep 17, 2017
Merged

remove overzealous Box<ZeroSizeType> optimization#44553
bors merged 1 commit into
rust-lang:masterfrom
qmx:refactor-remove-overzealous-box-szero-optimization

Conversation

@qmx

@qmxqmx commented Sep 13, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@rust-highfive

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

r? @arielb1

@rust-highfiverust-highfive assigned arielb1 and unassigned eddybSep 13, 2017
@arielb1

arielb1 commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

@bors r+

Let's see whether this is important in practice.

@bors

bors commented Sep 14, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 916ccc5 has been approved by arielb1

@bors

bors commented Sep 14, 2017

Copy link
Copy Markdown
Collaborator

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

@bors

bors commented Sep 14, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 916ccc5 has been approved by arielb1

@alexcrichtonalexcrichton 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
@TimNNTimNN mentioned this pull request Sep 17, 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
@TimNNTimNN mentioned this pull request Sep 17, 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
@TimNNTimNN mentioned this pull request Sep 17, 2017
bors added a commit that referenced this pull request Sep 17, 2017
@bors
bors merged commit 916ccc5 into rust-lang:masterSep 17, 2017
@bstrie

Copy link
Copy Markdown
Contributor

What bug is this fixing? "Overzealous" how?

@eddyb

Copy link
Copy Markdown
Contributor

@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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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

@qmx@rust-highfive@eddyb@arielb1@bors@bstrie@alexcrichton