fmt
This commit is contained in:
parent
a7f84e981e
commit
d894ce8827
4 changed files with 4 additions and 13 deletions
|
@ -753,10 +753,7 @@ pub struct BuildHasherDefault<H>(marker::PhantomData<fn() -> H>);
|
|||
impl<H> BuildHasherDefault<H> {
|
||||
/// Creates a new BuildHasherDefault for Hasher `H`.
|
||||
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
|
||||
#[rustc_const_stable(
|
||||
feature = "build_hasher_default_const_new",
|
||||
since = "1.85.0"
|
||||
)]
|
||||
#[rustc_const_stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
|
||||
pub const fn new() -> Self {
|
||||
BuildHasherDefault(marker::PhantomData)
|
||||
}
|
||||
|
|
|
@ -296,10 +296,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
|
||||
#[rustc_const_stable(
|
||||
feature = "const_collections_with_hasher",
|
||||
since = "1.85.0"
|
||||
)]
|
||||
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
|
||||
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S> {
|
||||
HashMap { base: base::HashMap::with_hasher(hash_builder) }
|
||||
}
|
||||
|
|
|
@ -388,10 +388,7 @@ impl<T, S> HashSet<T, S> {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
|
||||
#[rustc_const_stable(
|
||||
feature = "const_collections_with_hasher",
|
||||
since = "1.85.0"
|
||||
)]
|
||||
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
|
||||
pub const fn with_hasher(hasher: S) -> HashSet<T, S> {
|
||||
HashSet { base: base::HashSet::with_hasher(hasher) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue