File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
branches/try/src/librustc/middle Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5
- refs/heads/try: a1ee3810b82e4947d872c6d74c9d246fe4d2853d
5
+ refs/heads/try: d503fff28ef8498e9e4ba9fb36f63f6905e882a7
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
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