-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for {Mutex, RwLock, ReentrantLock}::data_ptr #140368
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(mutex_data_ptr)],#![feature(rwlock_data_ptr)], #![feature(reentrant_lock_data_ptr)]This is a tracking issue for allowing unguarded access to the inner value of a
MutexorRwLock. Previous discussion here: rust-lang/libs-team#531Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
LockResultor not?*mut Tlike existing APIs (Cell::as_ptr/MaybeUninit::as[_mut]_ptr/Vec::as_ptr/ ...) or be more precise and returnNonNull<T>?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩