diff options
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/ty/traits.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 978cc2587..f8364203d 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -2715,7 +2715,7 @@ fn infer(content: &str) -> String { | |||
2715 | // sort ranges for consistency | 2715 | // sort ranges for consistency |
2716 | types.sort_by_key(|(ptr, _)| (ptr.range().start(), ptr.range().end())); | 2716 | types.sort_by_key(|(ptr, _)| (ptr.range().start(), ptr.range().end())); |
2717 | for (syntax_ptr, ty) in &types { | 2717 | for (syntax_ptr, ty) in &types { |
2718 | let node = syntax_ptr.to_node(&source_file); | 2718 | let node = syntax_ptr.to_node(source_file.syntax()); |
2719 | let (range, text) = if let Some(self_param) = ast::SelfParam::cast(node) { | 2719 | let (range, text) = if let Some(self_param) = ast::SelfParam::cast(node) { |
2720 | (self_param.self_kw_token().range(), "self".to_string()) | 2720 | (self_param.self_kw_token().range(), "self".to_string()) |
2721 | } else { | 2721 | } else { |
diff --git a/crates/ra_hir/src/ty/traits.rs b/crates/ra_hir/src/ty/traits.rs index 4260f7ef7..7de04c044 100644 --- a/crates/ra_hir/src/ty/traits.rs +++ b/crates/ra_hir/src/ty/traits.rs | |||
@@ -17,7 +17,7 @@ pub(crate) type Solver = chalk_solve::Solver; | |||
17 | /// This controls the maximum size of types Chalk considers. If we set this too | 17 | /// This controls the maximum size of types Chalk considers. If we set this too |
18 | /// high, we can run into slow edge cases; if we set it too low, Chalk won't | 18 | /// high, we can run into slow edge cases; if we set it too low, Chalk won't |
19 | /// find some solutions. | 19 | /// find some solutions. |
20 | const CHALK_SOLVER_MAX_SIZE: usize = 2; | 20 | const CHALK_SOLVER_MAX_SIZE: usize = 4; |
21 | 21 | ||
22 | #[derive(Debug, Copy, Clone)] | 22 | #[derive(Debug, Copy, Clone)] |
23 | struct ChalkContext<'a, DB> { | 23 | struct ChalkContext<'a, DB> { |