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 > ;
@@ -618,19 +618,24 @@ impl<'a, 'ra, 'tcx> BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
618618 let kind = ImportKind :: Single {
619619 source : source. ident ,
620620 target : ident,
621- source_bindings : PerNS {
622- type_ns : Cell :: new ( Err ( Determinacy :: Undetermined ) ) ,
623- value_ns : Cell :: new ( Err ( Determinacy :: Undetermined ) ) ,
624- macro_ns : Cell :: new ( Err ( Determinacy :: Undetermined ) ) ,
625- } ,
626- target_bindings : PerNS {
627- type_ns : Cell :: new ( None ) ,
628- value_ns : Cell :: new ( None ) ,
629- macro_ns : Cell :: new ( None ) ,
630- } ,
621+ // source_bindings: PerNS {
622+ // type_ns: Cell::new(Err(Determinacy::Undetermined)),
623+ // value_ns: Cell::new(Err(Determinacy::Undetermined)),
624+ // macro_ns: Cell::new(Err(Determinacy::Undetermined)),
625+ // },
626+ // target_bindings: PerNS {
627+ // type_ns: Cell::new(None),
628+ // value_ns: Cell::new(None),
629+ // macro_ns: Cell::new(None),
630+ // },
631631 type_ns_only,
632632 nested,
633633 id,
634+ bindings : PerNS {
635+ value_ns : Cell :: new ( Poll :: Pending ) ,
636+ type_ns : Cell :: new ( Poll :: Pending ) ,
637+ macro_ns : Cell :: new ( Poll :: Pending ) ,
638+ } ,
634639 } ;
635640
636641 self . add_import ( module_path, kind, use_tree. span , item, root_span, item. id , vis) ;
0 commit comments