-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for {Arc, Rc}::into_inner #106894
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gates:
#![feature(arc_into_inner)],#![feature(rc_into_inner)]This is a tracking issue for the
Arc::into_innermethod, and (for API-consistency) also anRc::into_inneranalogue.The function
Arc::into_inner(x)serves as an atomic race-condition-free alternative toArc::try_unwrap(x).ok(). See the ACP for more details.Public API
and the extension to
RcSteps / History
Arc::into_innerfor safely discardingArcs without calling the destructor on the inner type. libs-team#162Arc::into_innerAddArc::into_innerfor safely discardingArcs without calling the destructor on the inner type. #106854Rc::into_innerIntroduceRc::into_inner, as a parallel toArc::into_inner#109026arc_into_innerandrc_into_inner. #109504Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩