Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jan 18, 2024
1 parent c9e83b6 commit b24c62d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions rustc-hash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

#![feature(hasher_prefixfree_extras)]
#![allow(rustc::default_hash_types)]

//! Fast, non-cryptographic hash used by rustc and Firefox.
//!
Expand Down
4 changes: 1 addition & 3 deletions rustc-hash/src/random_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ mod tests {
// `1 / 2.pow(bit_size_of::<usize>())`. Or 1/1.7e19 for 64 bit platforms or 1/4294967295
// for 32 bit platforms. I suppose this is acceptable.
let a = FxHashMapRand::<&str, u32>::default();
let b = thread::spawn(|| FxHashMapRand::<&str, u32>::default())
.join()
.unwrap();
let b = thread::spawn(|| FxHashMapRand::<&str, u32>::default()).join().unwrap();

assert_ne!(a.hasher().seed, b.hasher().seed);
}
Expand Down
5 changes: 1 addition & 4 deletions rustc-hash/src/seeded_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ mod tests {
let a = FxHashMapSeed::<&str, u32>::with_hasher(FxSeededState::with_seed(1));
let b = FxHashMapSeed::<&str, u32>::with_hasher(FxSeededState::with_seed(2));

assert_ne!(
a.hasher().build_hasher().hash,
b.hasher().build_hasher().hash
);
assert_ne!(a.hasher().build_hasher().hash, b.hasher().build_hasher().hash);
}
}

0 comments on commit b24c62d

Please sign in to comment.