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 > ;
@@ -620,19 +620,24 @@ impl<'a, 'ra, 'tcx> BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
620
620
let kind = ImportKind :: Single {
621
621
source : source. ident ,
622
622
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
+ // },
633
633
type_ns_only,
634
634
nested,
635
635
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
+ } ,
636
641
} ;
637
642
638
643
self . add_import ( module_path, kind, use_tree. span , item, root_span, item. id , vis) ;
0 commit comments