aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r--crates/ra_hir_ty/src/tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_ty/src/tests.rs b/crates/ra_hir_ty/src/tests.rs
index e82f2c11e..85ff26a36 100644
--- a/crates/ra_hir_ty/src/tests.rs
+++ b/crates/ra_hir_ty/src/tests.rs
@@ -166,17 +166,17 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String {
166 DefWithBodyId::FunctionId(it) => { 166 DefWithBodyId::FunctionId(it) => {
167 let loc = it.lookup(&db); 167 let loc = it.lookup(&db);
168 let tree = db.item_tree(loc.id.file_id); 168 let tree = db.item_tree(loc.id.file_id);
169 tree.source(&db, loc.id.value).syntax().text_range().start() 169 tree.source(&db, loc.id).syntax().text_range().start()
170 } 170 }
171 DefWithBodyId::ConstId(it) => { 171 DefWithBodyId::ConstId(it) => {
172 let loc = it.lookup(&db); 172 let loc = it.lookup(&db);
173 let tree = db.item_tree(loc.id.file_id); 173 let tree = db.item_tree(loc.id.file_id);
174 tree.source(&db, loc.id.value).syntax().text_range().start() 174 tree.source(&db, loc.id).syntax().text_range().start()
175 } 175 }
176 DefWithBodyId::StaticId(it) => { 176 DefWithBodyId::StaticId(it) => {
177 let loc = it.lookup(&db); 177 let loc = it.lookup(&db);
178 let tree = db.item_tree(loc.id.file_id); 178 let tree = db.item_tree(loc.id.file_id);
179 tree.source(&db, loc.id.value).syntax().text_range().start() 179 tree.source(&db, loc.id).syntax().text_range().start()
180 } 180 }
181 }); 181 });
182 for def in defs { 182 for def in defs {