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

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html