mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Upgrade Chalk
This commit is contained in:
parent
b8800fd85d
commit
16ab75a83a
3 changed files with 13 additions and 13 deletions
|
@ -3,6 +3,7 @@
|
|||
use std::env::var;
|
||||
|
||||
use chalk_ir::GoalData;
|
||||
use chalk_recursive::Cache;
|
||||
use chalk_solve::{logging_db::LoggingRustIrDatabase, Solver};
|
||||
|
||||
use base_db::CrateId;
|
||||
|
@ -26,9 +27,8 @@ pub(crate) struct ChalkContext<'a> {
|
|||
fn create_chalk_solver() -> chalk_recursive::RecursiveSolver<Interner> {
|
||||
let overflow_depth =
|
||||
var("CHALK_OVERFLOW_DEPTH").ok().and_then(|s| s.parse().ok()).unwrap_or(100);
|
||||
let caching_enabled = true;
|
||||
let max_size = var("CHALK_SOLVER_MAX_SIZE").ok().and_then(|s| s.parse().ok()).unwrap_or(30);
|
||||
chalk_recursive::RecursiveSolver::new(overflow_depth, max_size, caching_enabled)
|
||||
chalk_recursive::RecursiveSolver::new(overflow_depth, max_size, Some(Cache::new()))
|
||||
}
|
||||
|
||||
/// A set of clauses that we assume to be true. E.g. if we are inside this function:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue