diff options
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 9bf1fd3b2..92c74cf00 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -562,7 +562,7 @@ fn infer(content: &str) -> String { | |||
562 | // sort ranges for consistency | 562 | // sort ranges for consistency |
563 | types.sort_by_key(|(ptr, _)| (ptr.range().start(), ptr.range().end())); | 563 | types.sort_by_key(|(ptr, _)| (ptr.range().start(), ptr.range().end())); |
564 | for (syntax_ptr, ty) in &types { | 564 | for (syntax_ptr, ty) in &types { |
565 | let node = syntax_ptr.resolve(&source_file); | 565 | let node = syntax_ptr.to_node(&source_file); |
566 | write!( | 566 | write!( |
567 | acc, | 567 | acc, |
568 | "{} '{}': {}\n", | 568 | "{} '{}': {}\n", |