Skip to content

Commit d7a4ae4

Browse files
bors[bot]flodiebold
andcommitted
Merge #1270
1270: Increase Chalk solver max_size back to 4 r=flodiebold a=flodiebold Reducing it to 2 was just a failed attempt to see whether that would help fix some slow cases; in fact, it can create new slow cases by replacing concrete types by variables. Co-authored-by: Florian Diebold <[email protected]>
2 parents 033a32f + c29a692 commit d7a4ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_hir/src/ty/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub(crate) type Solver = chalk_solve::Solver;
1717
/// This controls the maximum size of types Chalk considers. If we set this too
1818
/// high, we can run into slow edge cases; if we set it too low, Chalk won't
1919
/// find some solutions.
20-
const CHALK_SOLVER_MAX_SIZE: usize = 2;
20+
const CHALK_SOLVER_MAX_SIZE: usize = 4;
2121

2222
#[derive(Debug, Copy, Clone)]
2323
struct ChalkContext<'a, DB> {

0 commit comments

Comments
 (0)