Skip to content

Commit c5d03ab

Browse files
authored
Update phf dependencies (#673)
* Recreate grammars * Update phf and phf_codegen
1 parent d6dae3d commit c5d03ab

12 files changed

+2929
-2882
lines changed

Cargo.lock

Lines changed: 74 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MPL-2.0"
1212
build = "build.rs"
1313

1414
[build-dependencies]
15-
phf_codegen = "^0.8"
15+
phf_codegen = "^0.10"
1616

1717
[dependencies]
1818
aho-corasick = "^0.7"
@@ -24,7 +24,7 @@ num = "^0.4"
2424
num-derive = "^0.3"
2525
num-traits = "^0.2"
2626
petgraph = "^0.6"
27-
phf = { version = "^0.8", features = ["macros"] }
27+
phf = { version = "^0.10", features = ["macros"] }
2828
regex = "^1.5"
2929
serde = { version = "^1.0", features = ["derive"] }
3030
termcolor = "^1.1"

src/languages/language_ccomment.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@ pub enum Ccomment {
2323

2424
#[allow(clippy::unreadable_literal)]
2525
static KEYS: phf::Map<&'static str, Ccomment> = ::phf::Map {
26-
key: 3558916427560184125,
27-
disps: ::phf::Slice::Static(&[(2, 0), (0, 11), (0, 13), (0, 10)]),
28-
entries: ::phf::Slice::Static(&[
29-
("char_literal_token1", Ccomment::CharLiteralToken1),
26+
key: 15467950696543387533,
27+
disps: &[(1, 0), (0, 13), (5, 8), (7, 15)],
28+
entries: &[
3029
("define_token1", Ccomment::DefineToken1),
31-
("raw_string_literal", Ccomment::RawStringLiteral),
32-
("define", Ccomment::Define),
33-
("string_literal", Ccomment::StringLiteral),
34-
("define_repeat1", Ccomment::DefineRepeat1),
30+
("nothing", Ccomment::Nothing),
31+
("char_literal", Ccomment::CharLiteral),
3532
("translation_unit", Ccomment::TranslationUnit),
33+
("define", Ccomment::Define),
34+
(
35+
"preproc_continuation_line",
36+
Ccomment::PreprocContinuationLine,
37+
),
3638
("string_literal_token1", Ccomment::StringLiteralToken1),
3739
("ERROR", Ccomment::Error),
40+
("_top_level_item", Ccomment::TopLevelItem),
41+
("char_literal_token1", Ccomment::CharLiteralToken1),
3842
("comment", Ccomment::Comment),
43+
("translation_unit_repeat1", Ccomment::TranslationUnitRepeat1),
3944
("preproc_line", Ccomment::PreprocLine),
40-
("_top_level_item", Ccomment::TopLevelItem),
41-
("char_literal", Ccomment::CharLiteral),
45+
("string_literal", Ccomment::StringLiteral),
46+
("define_repeat1", Ccomment::DefineRepeat1),
47+
("raw_string_literal", Ccomment::RawStringLiteral),
4248
("end", Ccomment::End),
43-
("translation_unit_repeat1", Ccomment::TranslationUnitRepeat1),
44-
("nothing", Ccomment::Nothing),
45-
(
46-
"preproc_continuation_line",
47-
Ccomment::PreprocContinuationLine,
48-
),
49-
]),
49+
],
5050
};
5151

5252
impl From<&str> for Ccomment {

0 commit comments

Comments
 (0)