aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r--crates/ra_hir/src/code_model.rs30
1 files changed, 19 insertions, 11 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 75914ccb0..ed640d7fc 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -3,24 +3,32 @@ pub(crate) mod docs;
3 3
4use std::sync::Arc; 4use std::sync::Arc;
5 5
6use ra_db::{CrateId, SourceRootId, Edition, FileId}; 6use ra_db::{CrateId, Edition, FileId, SourceRootId};
7use ra_syntax::{ast::{self, NameOwner, TypeAscriptionOwner}, TreeArc}; 7use ra_syntax::{
8 ast::{self, NameOwner, TypeAscriptionOwner},
9 TreeArc,
10};
8 11
9use crate::{ 12use crate::{
10 Name, AsName, AstId, Ty, Either, KnownName, HasSource,
11 HirDatabase, DefDatabase, AstDatabase,
12 type_ref::TypeRef,
13 nameres::{ModuleScope, Namespace, ImportId, CrateModuleId},
14 expr::{Body, BodySourceMap, validation::ExprValidator},
15 ty::{TraitRef, InferenceResult, primitive::{IntTy, FloatTy, Signedness, IntBitness, FloatBitness}},
16 adt::{EnumVariantId, StructFieldId, VariantDef}, 13 adt::{EnumVariantId, StructFieldId, VariantDef},
14 diagnostics::DiagnosticSink,
15 expr::{validation::ExprValidator, Body, BodySourceMap},
17 generics::HasGenericParams, 16 generics::HasGenericParams,
18 ids::{FunctionId, StructId, EnumId, AstItemDef, ConstId, StaticId, TraitId, TypeAliasId, MacroDefId}, 17 ids::{
18 AstItemDef, ConstId, EnumId, FunctionId, MacroDefId, StaticId, StructId, TraitId,
19 TypeAliasId,
20 },
19 impl_block::ImplBlock, 21 impl_block::ImplBlock,
22 nameres::{CrateModuleId, ImportId, ModuleScope, Namespace},
20 resolve::Resolver, 23 resolve::Resolver,
21 diagnostics::{DiagnosticSink}, 24 traits::{TraitData, TraitItem},
22 traits::{TraitItem, TraitData}, 25 ty::{
26 primitive::{FloatBitness, FloatTy, IntBitness, IntTy, Signedness},
27 InferenceResult, TraitRef,
28 },
23 type_ref::Mutability, 29 type_ref::Mutability,
30 type_ref::TypeRef,
31 AsName, AstDatabase, AstId, DefDatabase, Either, HasSource, HirDatabase, KnownName, Name, Ty,
24}; 32};
25 33
26/// hir::Crate describes a single crate. It's the main interface with which 34/// hir::Crate describes a single crate. It's the main interface with which