File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
branches/dist-snap/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 @@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: a1ee3810b82e4947d872c6d74c9d246fe4d2853d
9
+ refs/heads/dist-snap: d503fff28ef8498e9e4ba9fb36f63f6905e882a7
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
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