aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-05-13 22:04:04 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-05-13 22:04:04 +0100
commitbebc5c71664a144b9addd357eb503f776f2cf416 (patch)
treea7e95d622803bd745a93713dbce396be11846543 /crates/ra_hir/src/ty
parentd7a4ae43f9308f683ddb3ca89104c5eb12d8d6b3 (diff)
parent549728bba87ed8f4375f27bb9a77223bf8f65452 (diff)
Merge #1271
1271: make AstId untyped r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r--crates/ra_hir/src/ty/tests.rs2
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 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 {