Closed
Description
Feature gate: #![feature(const_nonnull_new)]
This is a tracking issue for implementing NonNull::new
.
Public API
// core::ptr
impl<T: ?Sized> NonNull<T> {
pub const fn new(ptr: *mut T) -> Option<Self>;
}
Steps / History
- Implementation: Make
NonNull::new
const
#93236 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Quasi-blocked on Tracking issue for const
<*const T>::is_null
#74939
Metadata
Metadata
Assignees
Labels
Area: Constant evaluation, covers all const contexts (static, const fn, ...)Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.