77
88use std:: cell:: Cell ;
99use std:: sync:: Arc ;
10+ use std:: task:: Poll ;
1011
1112use rustc_ast:: visit:: { self , AssocCtxt , Visitor , WalkItemKind } ;
1213use rustc_ast:: {
@@ -32,10 +33,9 @@ use crate::def_collector::collect_definitions;
3233use crate :: imports:: { ImportData , ImportKind } ;
3334use crate :: macros:: { MacroRulesBinding , MacroRulesScope , MacroRulesScopeRef } ;
3435use crate :: {
35- BindingKey , Determinacy , ExternPreludeEntry , Finalize , MacroData , Module , ModuleKind ,
36- ModuleOrUniformRoot , NameBinding , NameBindingData , NameBindingKind , ParentScope , PathResult ,
37- ResolutionError , Resolver , ResolverArenas , Segment , ToNameBinding , Used , VisResolutionError ,
38- errors,
36+ BindingKey , ExternPreludeEntry , Finalize , MacroData , Module , ModuleKind , ModuleOrUniformRoot ,
37+ NameBinding , NameBindingData , NameBindingKind , ParentScope , PathResult , ResolutionError ,
38+ Resolver , ResolverArenas , Segment , ToNameBinding , Used , VisResolutionError , errors,
3939} ;
4040
4141type Res = def:: Res < NodeId > ;
@@ -620,19 +620,24 @@ impl<'a, 'ra, 'tcx> BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
620620 let kind = ImportKind :: Single {
621621 source : source. ident ,
622622 target : ident,
623- source_bindings : PerNS {
624- type_ns : Cell :: new ( Err ( Determinacy :: Undetermined ) ) ,
625- value_ns : Cell :: new ( Err ( Determinacy :: Undetermined ) ) ,
626- macro_ns : Cell :: new ( Err ( Determinacy :: Undetermined ) ) ,
627- } ,
628- target_bindings : PerNS {
629- type_ns : Cell :: new ( None ) ,
630- value_ns : Cell :: new ( None ) ,
631- macro_ns : Cell :: new ( None ) ,
632- } ,
623+ // source_bindings: PerNS {
624+ // type_ns: Cell::new(Err(Determinacy::Undetermined)),
625+ // value_ns: Cell::new(Err(Determinacy::Undetermined)),
626+ // macro_ns: Cell::new(Err(Determinacy::Undetermined)),
627+ // },
628+ // target_bindings: PerNS {
629+ // type_ns: Cell::new(None),
630+ // value_ns: Cell::new(None),
631+ // macro_ns: Cell::new(None),
632+ // },
633633 type_ns_only,
634634 nested,
635635 id,
636+ bindings : PerNS {
637+ value_ns : Cell :: new ( Poll :: Pending ) ,
638+ type_ns : Cell :: new ( Poll :: Pending ) ,
639+ macro_ns : Cell :: new ( Poll :: Pending ) ,
640+ } ,
636641 } ;
637642
638643 self . add_import ( module_path, kind, use_tree. span , item, root_span, item. id , vis) ;
0 commit comments