aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/expr.rs')
-rw-r--r--crates/ra_hir/src/expr.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs
index 4c54449ef..a31f086f7 100644
--- a/crates/ra_hir/src/expr.rs
+++ b/crates/ra_hir/src/expr.rs
@@ -758,10 +758,7 @@ pub(crate) fn body_syntax_mapping(
758 let def = def_id.resolve(db)?; 758 let def = def_id.resolve(db)?;
759 759
760 let body_syntax_mapping = match def { 760 let body_syntax_mapping = match def {
761 Def::Function(f) => { 761 Def::Function(f) => collect_fn_body_syntax(&f.source(db)),
762 let node = f.syntax(db);
763 collect_fn_body_syntax(&node)
764 }
765 // TODO: consts, etc. 762 // TODO: consts, etc.
766 _ => panic!("Trying to get body for item type without body"), 763 _ => panic!("Trying to get body for item type without body"),
767 }; 764 };