The functions below in the standard library are const fn with individual feature gates for calling them in constant expressions. This issue is tracking the stabilization of such calls.
CC #24111, the super-set feature which also includes defining new const fn items.
std::sync::Once::new
core::cell::Cell::new
core::cell::RefCell::new
core::cell::UnsafeCell::new
core::sync::AtomicBool::new
core::sync::AtomicPtr::new
core::sync::Atomic$IntegerType::new
core::mem::size_of
core::mem::align_of
core::ptr::null
core::ptr::null_mut
<$IntegerType>::max_value
<$IntegerType>::min_value
Items in core:: are also re-exported in std::.
The functions below in the standard library are
const fnwith individual feature gates for calling them in constant expressions. This issue is tracking the stabilization of such calls.CC #24111, the super-set feature which also includes defining new
const fnitems.std::sync::Once::newcore::cell::Cell::newcore::cell::RefCell::newcore::cell::UnsafeCell::newcore::sync::AtomicBool::newcore::sync::AtomicPtr::newcore::sync::Atomic$IntegerType::newcore::mem::size_ofcore::mem::align_ofcore::ptr::nullcore::ptr::null_mut<$IntegerType>::max_value<$IntegerType>::min_valueItems in
core::are also re-exported instd::.