mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Use fuel branch for Chalk
This makes sure we don't take too long in trait solving.
This commit is contained in:
parent
ed943adb29
commit
f613c48d2e
3 changed files with 27 additions and 27 deletions
|
@ -61,7 +61,7 @@ fn solve(
|
|||
let context = ChalkContext { db, krate };
|
||||
let solver = db.solver(krate);
|
||||
debug!("solve goal: {:?}", goal);
|
||||
let solution = solver.lock().unwrap().solve(&context, goal);
|
||||
let solution = solver.lock().unwrap().solve_with_fuel(&context, goal, Some(1000));
|
||||
debug!("solve({:?}) => {:?}", goal, solution);
|
||||
solution
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue