Skip to content

Commit a9f115b

Browse files
Merge #9805
9805: internal: Upgrade Chalk r=flodiebold a=flodiebold Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2 parents b8800fd + 16ab75a commit a9f115b

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Cargo.lock

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

crates/hir_ty/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ ena = "0.14.0"
1717
log = "0.4.8"
1818
rustc-hash = "1.1.0"
1919
scoped-tls = "1"
20-
chalk-solve = { version = "0.69", default-features = false }
21-
chalk-ir = "0.69"
22-
chalk-recursive = { version = "0.69", default-features = false }
20+
chalk-solve = { version = "0.70", default-features = false }
21+
chalk-ir = "0.70"
22+
chalk-recursive = { version = "0.70", default-features = false }
2323
la-arena = { version = "0.2.0", path = "../../lib/arena" }
2424
once_cell = { version = "1.5.0" }
2525

crates/hir_ty/src/traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use std::env::var;
44

55
use chalk_ir::GoalData;
6+
use chalk_recursive::Cache;
67
use chalk_solve::{logging_db::LoggingRustIrDatabase, Solver};
78

89
use base_db::CrateId;
@@ -26,9 +27,8 @@ pub(crate) struct ChalkContext<'a> {
2627
fn create_chalk_solver() -> chalk_recursive::RecursiveSolver<Interner> {
2728
let overflow_depth =
2829
var("CHALK_OVERFLOW_DEPTH").ok().and_then(|s| s.parse().ok()).unwrap_or(100);
29-
let caching_enabled = true;
3030
let max_size = var("CHALK_SOLVER_MAX_SIZE").ok().and_then(|s| s.parse().ok()).unwrap_or(30);
31-
chalk_recursive::RecursiveSolver::new(overflow_depth, max_size, caching_enabled)
31+
chalk_recursive::RecursiveSolver::new(overflow_depth, max_size, Some(Cache::new()))
3232
}
3333

3434
/// A set of clauses that we assume to be true. E.g. if we are inside this function:

0 commit comments

Comments
 (0)