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

stabilize const_pin_2 #133127

Closed
wants to merge 1 commit into from
Closed

stabilize const_pin_2 #133127

wants to merge 1 commit into from

Conversation

RalfJung
Copy link
Member

This got split out from const_pin in #130136; we can merge them back together since it's still the same release cycle (assuming this lands fast enough).

r? @tgross35
Fixes #76654

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 17, 2024
@rust-log-analyzer

This comment has been minimized.

@@ -1214,7 +1214,7 @@ impl<Ptr: Deref<Target: Unpin>> Pin<Ptr> {
/// assert_eq!(*r, 5);
/// ```
#[inline(always)]
#[rustc_const_unstable(feature = "const_pin_2", issue = "76654")]
#[rustc_const_stable(feature = "const_pin", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "pin_into_inner", since = "1.39.0")]
Copy link
Contributor

Choose a reason for hiding this comment

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

These need const_precise_live_drops

@tgross35
Copy link
Contributor

There is a stabilization PR up at #131904, you could probably just cherry pick that commit and rebase if you want.

@RalfJung
Copy link
Member Author

Oh, sorry, I didn't realize there's already a PR.

@RalfJung RalfJung closed this Nov 17, 2024
@tgross35
Copy link
Contributor

We can use this one if the author doesn't get back before the 21st :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tracking issue for const Pin methods
4 participants