File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ struct Module {
455
455
// Whether this module is populated. If not populated, any attempt to
456
456
// access the children must be preceded with a
457
457
// `populate_module_if_necessary` call.
458
- populated : bool ,
458
+ populated : Cell < bool > ,
459
459
}
460
460
461
461
impl Module {
@@ -477,7 +477,7 @@ impl Module {
477
477
import_resolutions : @mut HashMap :: new ( ) ,
478
478
glob_count : 0 ,
479
479
resolved_import_count : 0 ,
480
- populated : !external,
480
+ populated : Cell :: new ( !external) ,
481
481
}
482
482
}
483
483
@@ -1887,16 +1887,16 @@ impl Resolver {
1887
1887
child_ident,
1888
1888
visibility)
1889
1889
} ) ;
1890
- module. populated = true
1890
+ module. populated . set ( true )
1891
1891
}
1892
1892
1893
1893
/// Ensures that the reduced graph rooted at the given external module
1894
1894
/// is built, building it if it is not.
1895
1895
fn populate_module_if_necessary ( & mut self , module : @mut Module ) {
1896
- if !module. populated {
1896
+ if !module. populated . get ( ) {
1897
1897
self . populate_external_module ( module)
1898
1898
}
1899
- assert ! ( module. populated)
1899
+ assert ! ( module. populated. get ( ) )
1900
1900
}
1901
1901
1902
1902
/// Builds the reduced graph rooted at the 'use' directive for an external
You can’t perform that action at this time.
0 commit comments