diff options
Diffstat (limited to 'crates/ra_hir/src/ty/infer.rs')
-rw-r--r-- | crates/ra_hir/src/ty/infer.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index 0e6ebd365..9244ff3cb 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs | |||
@@ -35,6 +35,7 @@ use super::{ | |||
35 | use crate::{ | 35 | use crate::{ |
36 | adt::VariantDef, | 36 | adt::VariantDef, |
37 | code_model::{ModuleDef::Trait, TypeAlias}, | 37 | code_model::{ModuleDef::Trait, TypeAlias}, |
38 | db::HirDatabase, | ||
38 | diagnostics::DiagnosticSink, | 39 | diagnostics::DiagnosticSink, |
39 | expr::{ | 40 | expr::{ |
40 | self, Array, BinaryOp, BindingAnnotation, Body, Expr, ExprId, Literal, Pat, PatId, | 41 | self, Array, BinaryOp, BindingAnnotation, Body, Expr, ExprId, Literal, Pat, PatId, |
@@ -50,8 +51,8 @@ use crate::{ | |||
50 | }, | 51 | }, |
51 | ty::infer::diagnostics::InferenceDiagnostic, | 52 | ty::infer::diagnostics::InferenceDiagnostic, |
52 | type_ref::{Mutability, TypeRef}, | 53 | type_ref::{Mutability, TypeRef}, |
53 | AdtDef, ConstData, DefWithBody, FnData, Function, HasBody, HirDatabase, ImplItem, ModuleDef, | 54 | AdtDef, ConstData, DefWithBody, FnData, Function, HasBody, ImplItem, ModuleDef, Name, Path, |
54 | Name, Path, StructField, | 55 | StructField, |
55 | }; | 56 | }; |
56 | 57 | ||
57 | mod unify; | 58 | mod unify; |
@@ -1614,9 +1615,10 @@ impl Expectation { | |||
1614 | 1615 | ||
1615 | mod diagnostics { | 1616 | mod diagnostics { |
1616 | use crate::{ | 1617 | use crate::{ |
1618 | db::HirDatabase, | ||
1617 | diagnostics::{DiagnosticSink, NoSuchField}, | 1619 | diagnostics::{DiagnosticSink, NoSuchField}, |
1618 | expr::ExprId, | 1620 | expr::ExprId, |
1619 | Function, HasSource, HirDatabase, | 1621 | Function, HasSource, |
1620 | }; | 1622 | }; |
1621 | 1623 | ||
1622 | #[derive(Debug, PartialEq, Eq, Clone)] | 1624 | #[derive(Debug, PartialEq, Eq, Clone)] |