Skip to content

Commit 8e531a7

Browse files
committed
---
yaml --- r: 97010 b: refs/heads/dist-snap c: d503fff h: refs/heads/master v: v3
1 parent 4eb87fd commit 8e531a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: a1ee3810b82e4947d872c6d74c9d246fe4d2853d
9+
refs/heads/dist-snap: d503fff28ef8498e9e4ba9fb36f63f6905e882a7
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/middle/resolve.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ struct Module {
455455
// Whether this module is populated. If not populated, any attempt to
456456
// access the children must be preceded with a
457457
// `populate_module_if_necessary` call.
458-
populated: bool,
458+
populated: Cell<bool>,
459459
}
460460

461461
impl Module {
@@ -477,7 +477,7 @@ impl Module {
477477
import_resolutions: @mut HashMap::new(),
478478
glob_count: 0,
479479
resolved_import_count: 0,
480-
populated: !external,
480+
populated: Cell::new(!external),
481481
}
482482
}
483483

@@ -1887,16 +1887,16 @@ impl Resolver {
18871887
child_ident,
18881888
visibility)
18891889
});
1890-
module.populated = true
1890+
module.populated.set(true)
18911891
}
18921892

18931893
/// Ensures that the reduced graph rooted at the given external module
18941894
/// is built, building it if it is not.
18951895
fn populate_module_if_necessary(&mut self, module: @mut Module) {
1896-
if !module.populated {
1896+
if !module.populated.get() {
18971897
self.populate_external_module(module)
18981898
}
1899-
assert!(module.populated)
1899+
assert!(module.populated.get())
19001900
}
19011901

19021902
/// Builds the reduced graph rooted at the 'use' directive for an external

0 commit comments

Comments
 (0)