@@ -4,24 +4,25 @@ use std::{iter, sync::Arc};
44use arrayvec:: ArrayVec ;
55use base_db:: { CrateDisplayName , CrateId , Edition , FileId } ;
66use either:: Either ;
7- use hir_def:: find_path:: PrefixKind ;
87use hir_def:: {
98 adt:: ReprKind ,
109 adt:: StructKind ,
1110 adt:: VariantData ,
1211 builtin_type:: BuiltinType ,
1312 expr:: { BindingAnnotation , Pat , PatId } ,
1413 import_map,
14+ item_tree:: ItemTreeNode ,
1515 lang_item:: LangItemTarget ,
1616 path:: ModPath ,
1717 per_ns:: PerNs ,
1818 resolver:: { HasResolver , Resolver } ,
1919 src:: HasSource as _,
2020 type_ref:: { Mutability , TypeRef } ,
21- AdtId , AssocContainerId , AttrDefId , ConstId , DefWithBodyId , EnumId , FunctionId , GenericDefId ,
22- HasModule , ImplId , LocalEnumVariantId , LocalFieldId , LocalModuleId , Lookup , ModuleId , StaticId ,
23- StructId , TraitId , TypeAliasId , TypeParamId , UnionId ,
21+ AdtId , AssocContainerId , AssocItemId , AssocItemLoc , AttrDefId , ConstId , DefWithBodyId , EnumId ,
22+ FunctionId , GenericDefId , HasModule , ImplId , LocalEnumVariantId , LocalFieldId , LocalModuleId ,
23+ Lookup , ModuleId , StaticId , StructId , TraitId , TypeAliasId , TypeParamId , UnionId ,
2424} ;
25+ use hir_def:: { find_path:: PrefixKind , item_scope:: ItemInNs , visibility:: Visibility } ;
2526use hir_expand:: {
2627 diagnostics:: DiagnosticSink ,
2728 name:: { name, AsName } ,
@@ -275,11 +276,6 @@ impl ModuleDef {
275276 }
276277}
277278
278- pub use hir_def:: {
279- attr:: Attrs , item_scope:: ItemInNs , item_tree:: ItemTreeNode , visibility:: Visibility ,
280- AssocItemId , AssocItemLoc ,
281- } ;
282-
283279impl Module {
284280 pub ( crate ) fn new ( krate : Crate , crate_module_id : LocalModuleId ) -> Module {
285281 Module { id : ModuleId { krate : krate. id , local_id : crate_module_id } }
0 commit comments