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

Make core::mem::needs_drop a const fn #54596

Merged
merged 4 commits into from
Sep 30, 2018
Merged

Make core::mem::needs_drop a const fn #54596

merged 4 commits into from
Sep 30, 2018

Conversation

mjbshaw
Copy link
Contributor

@mjbshaw mjbshaw commented Sep 26, 2018

This fixes #51929.

@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 @cramertj (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.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 26, 2018
#[inline]
#[stable(feature = "needs_drop", since = "1.21.0")]
#[cfg(stage0)]
/// Ceci n'est pas la documentation
Copy link
Member

Choose a reason for hiding this comment

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

If #54601 merges first, you can drop this dummy non-const version.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, though maybe not with the intrinsic safety change too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the heads up. If #54601 merges first I'll be sure to sync and test with and without the dummy non-const version.

@nagisa
Copy link
Member

nagisa commented Sep 28, 2018 via email

@nagisa
Copy link
Member

nagisa commented Sep 29, 2018

r? @RalfJung you’re probably the most appropriate person to make an actual decision here.

@rust-highfive rust-highfive assigned RalfJung and unassigned cramertj Sep 29, 2018
@RalfJung
Copy link
Member

Looks good to me. Thanks @mjbshaw!

@bors r+

@bors
Copy link
Contributor

bors commented Sep 29, 2018

📌 Commit 2c3c882 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 Sep 29, 2018
@bors
Copy link
Contributor

bors commented Sep 30, 2018

⌛ Testing commit 2c3c882 with merge 603d712859470adba1d6bf925214bf4c9d83da84...

@bors
Copy link
Contributor

bors commented Sep 30, 2018

💔 Test failed - status-appveyor

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

mjbshaw commented Sep 30, 2018

I just pushed a new commit that should fix the broken test (by removing the unnecessary unsafe {} block).

@nagisa
Copy link
Member

nagisa commented Sep 30, 2018

@bors r=RalfJung

@bors
Copy link
Contributor

bors commented Sep 30, 2018

📌 Commit 43cc32f 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 Sep 30, 2018
@bors
Copy link
Contributor

bors commented Sep 30, 2018

⌛ Testing commit 43cc32f with merge 1886d5f...

bors added a commit that referenced this pull request Sep 30, 2018
Make core::mem::needs_drop a const fn

This fixes #51929.
@bors
Copy link
Contributor

bors commented Sep 30, 2018

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

@bors bors merged commit 43cc32f into rust-lang:master Sep 30, 2018
@mjbshaw mjbshaw deleted the drop branch October 2, 2018 03:15
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.

[tracking issue] const fn std::mem::needs_drop
7 participants