-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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 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.
Description
Feature gate: #![feature(unsafe_cell_access)]
This is a tracking issue for direct access APIs on UnsafeCell
(without going through raw pointers).
Public API
// core::cell
impl<T> UnsafeCell<T> {
pub unsafe fn replace(&self, new_value: T) -> T;
}
impl<T: ?Sized> UnsafeCell<T> {
pub unsafe fn as_ref_unchecked(&self) -> &T;
pub unsafe fn as_mut_unchecked(&self) -> &mut T;
}
Steps / History
- ACP:
UnsafeCell
access APIs libs-team#521 - Implementation: add UnsafeCell direct access APIs #136398
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
Serial-ATA, nazar-pc, Xendergo and quackzar
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.