Skip to content

Commit 3853a3b

Browse files
bors[bot]lnicola
andauthored
Merge #3298
3298: Bump chalk and replace TypeFamily with Interner r=flodiebold a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents e9c9f47 + ed69482 commit 3853a3b

File tree

4 files changed

+74
-65
lines changed

4 files changed

+74
-65
lines changed

Cargo.lock

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

crates/ra_hir_ty/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ ra_prof = { path = "../ra_prof" }
2121
ra_syntax = { path = "../ra_syntax" }
2222
test_utils = { path = "../test_utils" }
2323

24-
chalk-solve = { git = "https://github.com/rust-lang/chalk.git", rev = "af48f302a1f571b3ca418f7c5aa639a144a34f75" }
25-
chalk-rust-ir = { git = "https://github.com/rust-lang/chalk.git", rev = "af48f302a1f571b3ca418f7c5aa639a144a34f75" }
26-
chalk-ir = { git = "https://github.com/rust-lang/chalk.git", rev = "af48f302a1f571b3ca418f7c5aa639a144a34f75" }
24+
chalk-solve = { git = "https://github.com/rust-lang/chalk.git", rev = "2939913fb7bb94ac2a6721087dc086be11410702" }
25+
chalk-rust-ir = { git = "https://github.com/rust-lang/chalk.git", rev = "2939913fb7bb94ac2a6721087dc086be11410702" }
26+
chalk-ir = { git = "https://github.com/rust-lang/chalk.git", rev = "2939913fb7bb94ac2a6721087dc086be11410702" }
2727

2828
lalrpop-intern = "0.15.1"
2929

crates/ra_hir_ty/src/traits.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ use crate::db::HirDatabase;
1414

1515
use super::{Canonical, GenericPredicate, HirDisplay, ProjectionTy, TraitRef, Ty, TypeWalk};
1616

17-
use self::chalk::{from_chalk, ToChalk, TypeFamily};
17+
use self::chalk::{from_chalk, Interner, ToChalk};
1818

1919
pub(crate) mod chalk;
2020
mod builtin;
2121

2222
#[derive(Debug, Clone)]
2323
pub struct TraitSolver {
2424
krate: CrateId,
25-
inner: Arc<Mutex<chalk_solve::Solver<TypeFamily>>>,
25+
inner: Arc<Mutex<chalk_solve::Solver<Interner>>>,
2626
}
2727

2828
/// We need eq for salsa
@@ -38,8 +38,8 @@ impl TraitSolver {
3838
fn solve(
3939
&self,
4040
db: &impl HirDatabase,
41-
goal: &chalk_ir::UCanonical<chalk_ir::InEnvironment<chalk_ir::Goal<TypeFamily>>>,
42-
) -> Option<chalk_solve::Solution<TypeFamily>> {
41+
goal: &chalk_ir::UCanonical<chalk_ir::InEnvironment<chalk_ir::Goal<Interner>>>,
42+
) -> Option<chalk_solve::Solution<Interner>> {
4343
let context = ChalkContext { db, krate: self.krate };
4444
log::debug!("solve goal: {:?}", goal);
4545
let mut solver = match self.inner.lock() {
@@ -110,7 +110,7 @@ pub(crate) fn trait_solver_query(
110110
TraitSolver { krate, inner: Arc::new(Mutex::new(create_chalk_solver())) }
111111
}
112112

113-
fn create_chalk_solver() -> chalk_solve::Solver<TypeFamily> {
113+
fn create_chalk_solver() -> chalk_solve::Solver<Interner> {
114114
let solver_choice =
115115
chalk_solve::SolverChoice::SLG { max_size: CHALK_SOLVER_MAX_SIZE, expected_answers: None };
116116
solver_choice.into_solver()
@@ -242,9 +242,9 @@ pub(crate) fn trait_solve_query(
242242

243243
fn solution_from_chalk(
244244
db: &impl HirDatabase,
245-
solution: chalk_solve::Solution<TypeFamily>,
245+
solution: chalk_solve::Solution<Interner>,
246246
) -> Solution {
247-
let convert_subst = |subst: chalk_ir::Canonical<chalk_ir::Substitution<TypeFamily>>| {
247+
let convert_subst = |subst: chalk_ir::Canonical<chalk_ir::Substitution<Interner>>| {
248248
let value = subst
249249
.value
250250
.into_iter()

0 commit comments

Comments
 (0)