Skip to content

Commit e8b6a6a

Browse files
authored
Merge pull request #432 from Mcat12/tweak/replace-lalrpop-intern
Replace lalrpop-intern with string_cache
2 parents df646ae + a234d6e commit e8b6a6a

File tree

29 files changed

+594
-562
lines changed

29 files changed

+594
-562
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ TAGS
99
*~
1010
target
1111
chalk-parse/src/parser.rs
12+
13+
## IDE files
14+
/.idea/

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ bench = []
1616
[dependencies]
1717
docopt = "1.0.0"
1818
itertools = "0.9.0"
19-
lalrpop-intern = "0.15.1"
2019
rustyline = "1.0"
2120
salsa = "0.10.0"
2221
serde = "1.0"

chalk-integration/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ edition = "2018"
1010
publish = false
1111

1212
[dependencies]
13-
lalrpop-intern = "0.15.1"
13+
string_cache = "0.8.0"
1414
salsa = "0.10.0"
1515

1616
chalk-macros = { version = "0.10.1-dev", path = "../chalk-macros" }
1717
chalk-derive = { version = "0.10.1-dev", path = "../chalk-derive" }
1818
chalk-engine = { version = "0.10.1-dev", path = "../chalk-engine" }
19-
chalk-ir = { version = "0.10.1-dev", path = "../chalk-ir", features = ["default-interner"] }
19+
chalk-ir = { version = "0.10.1-dev", path = "../chalk-ir" }
2020
chalk-rust-ir = { version = "0.10.1-dev", path = "../chalk-rust-ir" }
2121
chalk-solve = { version = "0.10.1-dev", path = "../chalk-solve" }
2222
chalk-parse = { version = "0.10.1-dev", path = "../chalk-parse" }

chalk-integration/src/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use crate::error::ChalkError;
2+
use crate::interner::ChalkIr;
23
use crate::lowering::LowerGoal;
34
use crate::program::Program;
45
use crate::query::{Lowering, LoweringDatabase};
6+
use crate::tls;
57
use chalk_engine::forest::SubstitutionResult;
6-
use chalk_ir::interner::ChalkIr;
7-
use chalk_ir::tls;
88
use chalk_ir::AssocTypeId;
99
use chalk_ir::Canonical;
1010
use chalk_ir::ConstrainedSubst;

chalk-integration/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use chalk_ir::interner::ChalkIr;
1+
use crate::interner::ChalkIr;
22
use chalk_parse::ast::{Identifier, Kind};
33
use chalk_solve::coherence::CoherenceError;
44
use chalk_solve::wf::WfError;

0 commit comments

Comments
 (0)