Skip to content

Commit

Permalink
upgrade indexmap and use FXHasher
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Dec 11, 2024
1 parent 83ca52a commit 2a1238b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion patronus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license.workspace = true
rust-version.workspace = true

[dependencies]
indexmap = "2.0.0"
indexmap = "2.7.0"
codespan-reporting = "0.11.1"
lazy_static = "1.4.0"
easy-smt.workspace = true
Expand Down
5 changes: 3 additions & 2 deletions patronus/src/expr/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use crate::expr::nodes::*;
use crate::expr::TypeCheck;
use baa::{BitVecValue, BitVecValueIndex, BitVecValueRef, IndexToRef};
use rustc_hash::FxBuildHasher;
use std::borrow::Borrow;
use std::cell::RefCell;
use std::fmt::{Debug, Formatter};
Expand Down Expand Up @@ -69,8 +70,8 @@ impl ExprRef {
/// reference equivalence implies structural equivalence.
#[derive(Clone)]
pub struct Context {
strings: indexmap::IndexSet<String>,
exprs: indexmap::IndexSet<Expr>,
strings: indexmap::IndexSet<String, FxBuildHasher>,
exprs: indexmap::IndexSet<Expr, FxBuildHasher>,
values: baa::ValueInterner,
// cached special values
tru_expr_ref: ExprRef,
Expand Down

0 comments on commit 2a1238b

Please sign in to comment.