@@ -28,6 +28,7 @@ mod has_source;
28
28
29
29
pub mod diagnostics;
30
30
pub mod db;
31
+ pub mod symbols;
31
32
32
33
mod display;
33
34
@@ -40,12 +41,16 @@ use hir_def::{
40
41
adt:: { ReprKind , VariantData } ,
41
42
body:: { BodyDiagnostic , SyntheticSyntax } ,
42
43
expr:: { BindingAnnotation , LabelId , Pat , PatId } ,
44
+ item_tree:: ItemTreeNode ,
43
45
lang_item:: LangItemTarget ,
44
46
nameres:: { self , diagnostics:: DefDiagnostic } ,
45
47
per_ns:: PerNs ,
46
48
resolver:: { HasResolver , Resolver } ,
47
- AttrDefId , ConstId , ConstParamId , EnumId , FunctionId , GenericDefId , HasModule , LifetimeParamId ,
48
- LocalEnumVariantId , LocalFieldId , StaticId , StructId , TypeAliasId , TypeParamId , UnionId ,
49
+ src:: HasSource as _,
50
+ AdtId , AssocItemId , AssocItemLoc , AttrDefId , ConstId , ConstParamId , DefWithBodyId , EnumId ,
51
+ FunctionId , GenericDefId , HasModule , ImplId , ItemContainerId , LifetimeParamId ,
52
+ LocalEnumVariantId , LocalFieldId , Lookup , StaticId , StructId , TraitId , TypeAliasId ,
53
+ TypeParamId , UnionId ,
49
54
} ;
50
55
use hir_expand:: { name:: name, MacroCallKind , MacroDefKind } ;
51
56
use hir_ty:: {
@@ -106,24 +111,11 @@ pub use {
106
111
builtin_attr:: AttributeTemplate ,
107
112
find_path:: PrefixKind ,
108
113
import_map,
109
- item_scope:: ItemScope ,
110
- item_tree:: ItemTreeNode ,
111
- nameres:: { DefMap , ModuleData , ModuleOrigin , ModuleSource } ,
114
+ nameres:: ModuleSource ,
112
115
path:: { ModPath , PathKind } ,
113
- src:: HasSource as DefHasSource , // xx: I don't like this shadowing of HasSource... :(
114
116
type_ref:: { Mutability , TypeRef } ,
115
117
visibility:: Visibility ,
116
- AdtId ,
117
- AssocItemId ,
118
- AssocItemLoc ,
119
- DefWithBodyId ,
120
- ImplId ,
121
- ItemContainerId ,
122
- ItemLoc ,
123
- Lookup ,
124
- ModuleDefId ,
125
118
ModuleId ,
126
- TraitId ,
127
119
} ,
128
120
hir_expand:: {
129
121
name:: { known, Name } ,
0 commit comments