diff options
Diffstat (limited to 'crates/ra_hir/src/expr')
-rw-r--r-- | crates/ra_hir/src/expr/lower.rs | 5 | ||||
-rw-r--r-- | crates/ra_hir/src/expr/scope.rs | 3 | ||||
-rw-r--r-- | crates/ra_hir/src/expr/validation.rs | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/crates/ra_hir/src/expr/lower.rs b/crates/ra_hir/src/expr/lower.rs index 6afd80989..8bd041ff0 100644 --- a/crates/ra_hir/src/expr/lower.rs +++ b/crates/ra_hir/src/expr/lower.rs | |||
@@ -9,12 +9,13 @@ use ra_syntax::{ | |||
9 | use test_utils::tested_by; | 9 | use test_utils::tested_by; |
10 | 10 | ||
11 | use crate::{ | 11 | use crate::{ |
12 | db::HirDatabase, | ||
12 | name::{AsName, Name, SELF_PARAM}, | 13 | name::{AsName, Name, SELF_PARAM}, |
13 | path::GenericArgs, | 14 | path::GenericArgs, |
14 | ty::primitive::{FloatTy, IntTy, UncertainFloatTy, UncertainIntTy}, | 15 | ty::primitive::{FloatTy, IntTy, UncertainFloatTy, UncertainIntTy}, |
15 | type_ref::TypeRef, | 16 | type_ref::TypeRef, |
16 | DefWithBody, Either, HirDatabase, HirFileId, MacroCallLoc, MacroFileKind, Mutability, Path, | 17 | DefWithBody, Either, HirFileId, MacroCallLoc, MacroFileKind, Mutability, Path, Resolver, |
17 | Resolver, Source, | 18 | Source, |
18 | }; | 19 | }; |
19 | 20 | ||
20 | use super::{ | 21 | use super::{ |
diff --git a/crates/ra_hir/src/expr/scope.rs b/crates/ra_hir/src/expr/scope.rs index b6d7f3fc1..de0983a7e 100644 --- a/crates/ra_hir/src/expr/scope.rs +++ b/crates/ra_hir/src/expr/scope.rs | |||
@@ -4,8 +4,9 @@ use ra_arena::{impl_arena_id, Arena, RawId}; | |||
4 | use rustc_hash::FxHashMap; | 4 | use rustc_hash::FxHashMap; |
5 | 5 | ||
6 | use crate::{ | 6 | use crate::{ |
7 | db::HirDatabase, | ||
7 | expr::{Body, Expr, ExprId, Pat, PatId, Statement}, | 8 | expr::{Body, Expr, ExprId, Pat, PatId, Statement}, |
8 | DefWithBody, HirDatabase, Name, | 9 | DefWithBody, Name, |
9 | }; | 10 | }; |
10 | 11 | ||
11 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | 12 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] |
diff --git a/crates/ra_hir/src/expr/validation.rs b/crates/ra_hir/src/expr/validation.rs index 1202913e2..6a22e1318 100644 --- a/crates/ra_hir/src/expr/validation.rs +++ b/crates/ra_hir/src/expr/validation.rs | |||
@@ -5,12 +5,13 @@ use rustc_hash::FxHashSet; | |||
5 | 5 | ||
6 | use crate::{ | 6 | use crate::{ |
7 | adt::AdtDef, | 7 | adt::AdtDef, |
8 | db::HirDatabase, | ||
8 | diagnostics::{DiagnosticSink, MissingFields, MissingOkInTailExpr}, | 9 | diagnostics::{DiagnosticSink, MissingFields, MissingOkInTailExpr}, |
9 | expr::AstPtr, | 10 | expr::AstPtr, |
10 | name, | 11 | name, |
11 | path::{PathKind, PathSegment}, | 12 | path::{PathKind, PathSegment}, |
12 | ty::{ApplicationTy, InferenceResult, Ty, TypeCtor}, | 13 | ty::{ApplicationTy, InferenceResult, Ty, TypeCtor}, |
13 | Function, HirDatabase, ModuleDef, Name, Path, PerNs, Resolution, | 14 | Function, ModuleDef, Name, Path, PerNs, Resolution, |
14 | }; | 15 | }; |
15 | 16 | ||
16 | use super::{Expr, ExprId, RecordLitField}; | 17 | use super::{Expr, ExprId, RecordLitField}; |