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> {
|
impl<H> BuildHasherDefault<H> {
|
||||||
/// Creates a new BuildHasherDefault for Hasher `H`.
|
/// Creates a new BuildHasherDefault for Hasher `H`.
|
||||||
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
|
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
|
||||||
#[rustc_const_stable(
|
#[rustc_const_stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
|
||||||
feature = "build_hasher_default_const_new",
|
|
||||||
since = "1.85.0"
|
|
||||||
)]
|
|
||||||
pub const fn new() -> Self {
|
pub const fn new() -> Self {
|
||||||
BuildHasherDefault(marker::PhantomData)
|
BuildHasherDefault(marker::PhantomData)
|
||||||
}
|
}
|
||||||
|
|
|
@ -296,10 +296,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
|
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
|
||||||
#[rustc_const_stable(
|
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
|
||||||
feature = "const_collections_with_hasher",
|
|
||||||
since = "1.85.0"
|
|
||||||
)]
|
|
||||||
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S> {
|
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S> {
|
||||||
HashMap { base: base::HashMap::with_hasher(hash_builder) }
|
HashMap { base: base::HashMap::with_hasher(hash_builder) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,10 +388,7 @@ impl<T, S> HashSet<T, S> {
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
|
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
|
||||||
#[rustc_const_stable(
|
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
|
||||||
feature = "const_collections_with_hasher",
|
|
||||||
since = "1.85.0"
|
|
||||||
)]
|
|
||||||
pub const fn with_hasher(hasher: S) -> HashSet<T, S> {
|
pub const fn with_hasher(hasher: S) -> HashSet<T, S> {
|
||||||
HashSet { base: base::HashSet::with_hasher(hasher) }
|
HashSet { base: base::HashSet::with_hasher(hasher) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,7 +307,7 @@ impl Step for Src {
|
||||||
|
|
||||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||||
let config = &run.builder.config;
|
let config = &run.builder.config;
|
||||||
let cond = config.extended && config.tools.as_ref().is_none_or(|t|t.contains("src"));
|
let cond = config.extended && config.tools.as_ref().is_none_or(|t| t.contains("src"));
|
||||||
run.path("src").default_condition(cond)
|
run.path("src").default_condition(cond)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue