Closed
Description
Feature gate: #![feature(build_hasher_default_const_new)]
This is a tracking issue for a new new
class method for BuildHasherDefault. It allows creating a BuildHasherDefault in const contexts.
Because HashMap::with_hasher constness is being stabilized in #118427 this will in turn allow creating empty HashMap<K,V,BuildHasherDefault<H>>
in const context for any H: Default + Hasher
.
Public API
impl<H> BuildHasherDefault<H> {
pub const fn new() -> Self;
}
Steps / History
- Implementation: Add fn const BuildHasherDefault::new #123198
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
@rustbot claim