Tracking Issue for nonnull_provenance · Issue #135243 · rust-lang/rust (original) (raw)
Feature gate: #![feature(nonnull_provenance)]
This is a tracking issue for some provenance functions on NonNull that were missed in the initial strict provenance stabilization.
Public API
// core::ptr
impl NonNull { pub const fn without_provenance(addr: NonZero) -> Self; pub fn from_exposed_provenance(addr: NonZero) -> Self; } impl<T: ?Sized> NonNull { pub fn expose_provenance(self) -> NonZero; }
Steps / History
- ACP: Add expose_provenance and from_exposed_provenance on NonNull libs-team#518
- Implementation: add missing provenance APIs on NonNull #135242
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.