Closed
Description
Feature gate: #![feature(const_weak_new)]
This is a tracking issue for const
ification for creation of dangling weak reference counted pointers.
Public API
// alloc::rc
impl<T> Weak<T> {
pub const fn new() -> Weak<T>;
}
// alloc::sync
impl<T> Weak<T> {
pub const fn new() -> Weak<T>;
}
Steps / History
- Implementation: Make Weak::new const #94991
- Final comment period (FCP)
- Stabilization PR: Stabilize const-weak-new #95965
Unresolved Questions
- None yet.