7
7
8
8
use std:: cell:: Cell ;
9
9
use std:: sync:: Arc ;
10
+ use std:: task:: Poll ;
10
11
11
12
use rustc_ast:: visit:: { self , AssocCtxt , Visitor , WalkItemKind } ;
12
13
use rustc_ast:: {
@@ -32,10 +33,9 @@ use crate::def_collector::collect_definitions;
32
33
use crate :: imports:: { ImportData , ImportKind } ;
33
34
use crate :: macros:: { MacroRulesBinding , MacroRulesScope , MacroRulesScopeRef } ;
34
35
use 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,
39
39
} ;
40
40
41
41
type Res = def:: Res < NodeId > ;
@@ -618,19 +618,24 @@ impl<'a, 'ra, 'tcx> BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
618
618
let kind = ImportKind :: Single {
619
619
source : source. ident ,
620
620
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
+ // },
631
631
type_ns_only,
632
632
nested,
633
633
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
+ } ,
634
639
} ;
635
640
636
641
self . add_import ( module_path, kind, use_tree. span , item, root_span, item. id , vis) ;
0 commit comments