cleanup hir db imports

This commit is contained in:
Aleksey Kladov 2019-09-08 09:53:49 +03:00
parent 787f1206a9
commit 6021a2a83a
24 changed files with 65 additions and 43 deletions

View file

@ -9,12 +9,13 @@ use ra_syntax::{
use test_utils::tested_by;
use crate::{
db::HirDatabase,
name::{AsName, Name, SELF_PARAM},
path::GenericArgs,
ty::primitive::{FloatTy, IntTy, UncertainFloatTy, UncertainIntTy},
type_ref::TypeRef,
DefWithBody, Either, HirDatabase, HirFileId, MacroCallLoc, MacroFileKind, Mutability, Path,
Resolver, Source,
DefWithBody, Either, HirFileId, MacroCallLoc, MacroFileKind, Mutability, Path, Resolver,
Source,
};
use super::{

View file

@ -4,8 +4,9 @@ use ra_arena::{impl_arena_id, Arena, RawId};
use rustc_hash::FxHashMap;
use crate::{
db::HirDatabase,
expr::{Body, Expr, ExprId, Pat, PatId, Statement},
DefWithBody, HirDatabase, Name,
DefWithBody, Name,
};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]

View file

@ -5,12 +5,13 @@ use rustc_hash::FxHashSet;
use crate::{
adt::AdtDef,
db::HirDatabase,
diagnostics::{DiagnosticSink, MissingFields, MissingOkInTailExpr},
expr::AstPtr,
name,
path::{PathKind, PathSegment},
ty::{ApplicationTy, InferenceResult, Ty, TypeCtor},
Function, HirDatabase, ModuleDef, Name, Path, PerNs, Resolution,
Function, ModuleDef, Name, Path, PerNs, Resolution,
};
use super::{Expr, ExprId, RecordLitField};