diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 17:35:08 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 17:35:08 +0000 |
commit | 1c25bf05d714680c048d250a5d39e8a4c25f0c31 (patch) | |
tree | 9879fc268f2812576839118cf7e4c88df180a30b /crates/ra_hir/src/expr.rs | |
parent | 3b166aee3c116762c817f1acd0f5e01e48452932 (diff) | |
parent | ac92973a6c5934377c6eca9906f3b7f17e220d4e (diff) |
Merge #467
467: move function to code_model_api r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/expr.rs')
-rw-r--r-- | crates/ra_hir/src/expr.rs | 5 |
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 | }; |