-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Tracking Issue for clone_from_ref #149075
Copy link
Copy link
Open
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(clone_from_ref)]This is a tracking issue for
Box::clone_from_ref,Arc::clone_from_ref, andRc::clone_from_ref.try_*and*_infunctions are under this tracking issue as well asallocator_api.Allows creating a
Box<T>/Rc<T>/Arc<T>by cloning from a&TwhereT: CloneToUninit. Notably, these work even whenTis unsized (e.g. a slice).Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Box::new_from_reffor making aBox<T>from a&TwhereT: CloneToUninit + ?Sized(andRcandArc) libs-team#483Box::clone_from_refand similar underfeature(clone_from_ref)#149079Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩