diff options
Diffstat (limited to 'crates/ra_hir/src/expr.rs')
-rw-r--r-- | crates/ra_hir/src/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs index 5081466a2..a1e8da348 100644 --- a/crates/ra_hir/src/expr.rs +++ b/crates/ra_hir/src/expr.rs | |||
@@ -832,10 +832,10 @@ pub(crate) fn body_syntax_mapping( | |||
832 | db: &impl HirDatabase, | 832 | db: &impl HirDatabase, |
833 | def_id: DefId, | 833 | def_id: DefId, |
834 | ) -> Cancelable<Arc<BodySyntaxMapping>> { | 834 | ) -> Cancelable<Arc<BodySyntaxMapping>> { |
835 | let def = def_id.resolve(db)?; | 835 | let def = def_id.resolve(db); |
836 | 836 | ||
837 | let body_syntax_mapping = match def { | 837 | let body_syntax_mapping = match def { |
838 | Def::Function(f) => collect_fn_body_syntax(&f.source(db)?.1), | 838 | Def::Function(f) => collect_fn_body_syntax(&f.source(db).1), |
839 | // TODO: consts, etc. | 839 | // TODO: consts, etc. |
840 | _ => panic!("Trying to get body for item type without body"), | 840 | _ => panic!("Trying to get body for item type without body"), |
841 | }; | 841 | }; |