Skip to content

Commit

Permalink
fx hashset
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Wuerker committed Dec 21, 2023
1 parent abad1f4 commit 4d93aee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/hir-analysis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ either = "1.8"
derive_more = "0.99"
itertools = "0.10"
ena = "0.14"
indexmap = "1.6.2"
fxhash = "0.2.1"
hir = { path = "../hir", package = "fe-hir" }
common = { path = "../common2", package = "fe-common2" }
macros = { path = "../macros", package = "fe-macros" }
Expand Down
4 changes: 2 additions & 2 deletions crates/hir-analysis/src/ty/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use std::collections::BTreeSet;
use common::diagnostics::{
CompleteDiagnostic, DiagnosticPass, GlobalErrorCode, LabelStyle, Severity, SubDiagnostic,
};
use fxhash::FxHashSet;
use hir::{
diagnostics::DiagnosticVoucher,
hir_def::{FuncParamName, IdentId, ImplTrait, Trait, TypeAlias as HirTypeAlias},
span::{DynLazySpan, LazySpan},
HirDb, SpannedHirDb,
};
use indexmap::indexset;

use crate::HirAnalysisDb;

Expand Down Expand Up @@ -1107,7 +1107,7 @@ pub fn adt_recursion_diags(constituents: &[AdtRecursionConstituent]) -> Vec<TyDi

// `unified_constituents` tracks constituents that have been included in recursions.
// Constituents in this set cannot be used to construct other recursions.
let mut unified_constituents = indexset! {};
let mut unified_constituents = FxHashSet::default();

// `cur` is set to the first item in `constituents` that has not been included in another recursion.
while let Some(mut cur) =
Expand Down

0 comments on commit 4d93aee

Please sign in to comment.