Skip to content

Commit

Permalink
Replace fxhash with rustc-hash (#336)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Willsey <[email protected]>
  • Loading branch information
VitalyAnkh and mwillsey authored Dec 30, 2024
1 parent fa643ff commit 9f06254
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ version = "0.9.5"

[dependencies]
env_logger = { version = "0.9.0", default-features = false }
fxhash = "0.2.1"
rustc-hash = "2.0.0"
hashbrown = "0.15.2"
indexmap = "2.7.0"
quanta = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use crate::*;
/// // This is the search method from the Searcher trait
/// let matches = same_add.search(&egraph);
/// let matched_eclasses: Vec<Id> = matches.iter().map(|m| m.eclass).collect();
/// assert_eq!(matched_eclasses, vec![a11, a22]);
/// assert_eq!(matched_eclasses, vec![a22, a11]);
/// ```
///
/// [`FromStr`]: std::str::FromStr
Expand Down
4 changes: 2 additions & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use symbolic_expressions::Sexp;
use fmt::{Debug, Display, Formatter};

#[cfg(feature = "serde-1")]
use ::serde::{Deserialize, Serialize};
use serde::{Deserialize, Serialize};

#[allow(unused_imports)]
use crate::*;
Expand Down Expand Up @@ -42,7 +42,7 @@ use crate::*;
///
pub use symbol_table::GlobalSymbol as Symbol;

pub(crate) type BuildHasher = fxhash::FxBuildHasher;
pub(crate) type BuildHasher = rustc_hash::FxBuildHasher;

// pub(crate) type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasher>;
// pub(crate) type HashSet<K> = hashbrown::HashSet<K, BuildHasher>;
Expand Down
2 changes: 1 addition & 1 deletion tests/lambda.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use egg::{rewrite as rw, *};
use fxhash::FxHashSet as HashSet;
use rustc_hash::FxHashSet as HashSet;

define_language! {
enum Lambda {
Expand Down

0 comments on commit 9f06254

Please sign in to comment.