aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/body/lower.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/body/lower.rs')
-rw-r--r--crates/ra_hir_def/src/body/lower.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs
index d8e911aa5..331736cb2 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/ra_hir_def/src/body/lower.rs
@@ -1,4 +1,5 @@
1//! FIXME: write short doc here 1//! Transforms `ast::Expr` into an equivalent `hir_def::expr::Expr`
2//! representation.
2 3
3use hir_expand::{ 4use hir_expand::{
4 either::Either, 5 either::Either,
@@ -17,7 +18,7 @@ use test_utils::tested_by;
17use crate::{ 18use crate::{
18 body::{Body, BodySourceMap, Expander, PatPtr}, 19 body::{Body, BodySourceMap, Expander, PatPtr},
19 builtin_type::{BuiltinFloat, BuiltinInt}, 20 builtin_type::{BuiltinFloat, BuiltinInt},
20 db::DefDatabase2, 21 db::DefDatabase,
21 expr::{ 22 expr::{
22 ArithOp, Array, BinaryOp, BindingAnnotation, CmpOp, Expr, ExprId, Literal, LogicOp, 23 ArithOp, Array, BinaryOp, BindingAnnotation, CmpOp, Expr, ExprId, Literal, LogicOp,
23 MatchArm, Ordering, Pat, PatId, RecordFieldPat, RecordLitField, Statement, 24 MatchArm, Ordering, Pat, PatId, RecordFieldPat, RecordLitField, Statement,
@@ -28,7 +29,7 @@ use crate::{
28}; 29};
29 30
30pub(super) fn lower( 31pub(super) fn lower(
31 db: &impl DefDatabase2, 32 db: &impl DefDatabase,
32 expander: Expander, 33 expander: Expander,
33 params: Option<ast::ParamList>, 34 params: Option<ast::ParamList>,
34 body: Option<ast::Expr>, 35 body: Option<ast::Expr>,
@@ -57,7 +58,7 @@ struct ExprCollector<DB> {
57 58
58impl<'a, DB> ExprCollector<&'a DB> 59impl<'a, DB> ExprCollector<&'a DB>
59where 60where
60 DB: DefDatabase2, 61 DB: DefDatabase,
61{ 62{
62 fn collect( 63 fn collect(
63 mut self, 64 mut self,