Skip to content

Commit ebeb090

Browse files
committed
Use rustc-hash
1 parent 3de87f9 commit ebeb090

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Cargo.lock

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/parser/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ log = "0.4.16"
2828
num-bigint = "0.4.3"
2929
num-traits = "0.2.14"
3030
phf = "0.10.1"
31+
rustc-hash = "1.1.0"
32+
thiserror = "1.0"
3133
unic-emoji-char = "0.9.0"
3234
unic-ucd-ident = "0.9.0"
3335
unicode_names2 = "0.5.0"
34-
thiserror = "1.0"
35-
fnv = "1.0.7"
3636

3737
[dev-dependencies]
3838
insta = "1.14.0"

compiler/parser/src/function.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::ast;
22
use crate::error::{LexicalError, LexicalErrorType};
3-
use fnv::FnvHashSet;
3+
use rustc_hash::FxHashSet;
44

55
pub struct ArgumentList {
66
pub args: Vec<ast::Expr>,
@@ -54,7 +54,7 @@ pub fn parse_args(func_args: Vec<FunctionArgument>) -> Result<ArgumentList, Lexi
5454
let mut keywords = vec![];
5555

5656
let mut keyword_names =
57-
FnvHashSet::with_capacity_and_hasher(func_args.len(), Default::default());
57+
FxHashSet::with_capacity_and_hasher(func_args.len(), Default::default());
5858
for (name, value) in func_args {
5959
match name {
6060
Some((start, end, name)) => {

0 commit comments

Comments
 (0)