Skip to content

Commit 4d93aee

Browse files
author
Grant Wuerker
committed
fx hashset
1 parent abad1f4 commit 4d93aee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: crates/hir-analysis/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ either = "1.8"
1515
derive_more = "0.99"
1616
itertools = "0.10"
1717
ena = "0.14"
18-
indexmap = "1.6.2"
18+
fxhash = "0.2.1"
1919
hir = { path = "../hir", package = "fe-hir" }
2020
common = { path = "../common2", package = "fe-common2" }
2121
macros = { path = "../macros", package = "fe-macros" }

Diff for: crates/hir-analysis/src/ty/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ use std::collections::BTreeSet;
33
use common::diagnostics::{
44
CompleteDiagnostic, DiagnosticPass, GlobalErrorCode, LabelStyle, Severity, SubDiagnostic,
55
};
6+
use fxhash::FxHashSet;
67
use hir::{
78
diagnostics::DiagnosticVoucher,
89
hir_def::{FuncParamName, IdentId, ImplTrait, Trait, TypeAlias as HirTypeAlias},
910
span::{DynLazySpan, LazySpan},
1011
HirDb, SpannedHirDb,
1112
};
12-
use indexmap::indexset;
1313

1414
use crate::HirAnalysisDb;
1515

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

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

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

0 commit comments

Comments
 (0)