Skip to content

Commit 8dcc3e9

Browse files
committed
---
yaml --- r: 94729 b: refs/heads/try c: 091bfa9 h: refs/heads/master i: 94727: 4dee6b5 v: v3
1 parent 4f0184b commit 8dcc3e9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: 6659ae7d97b725e32a347a954f4e77118cc16a8a
5+
refs/heads/try: 091bfa9cc38e3baca273a88ee12344649705781e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librustc/middle/trans/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ pub fn get_tydesc(ccx: &CrateContext, t: ty::t) -> @tydesc_info {
454454
}
455455
}
456456

457-
ccx.stats.n_static_tydescs += 1u;
457+
ccx.stats.n_static_tydescs.set(ccx.stats.n_static_tydescs.get() + 1u);
458458
let inf = glue::declare_tydesc(ccx, t);
459459

460460
let mut tydescs = ccx.tydescs.borrow_mut();
@@ -3245,7 +3245,7 @@ pub fn trans_crate(sess: session::Session,
32453245
let metadata = write_metadata(ccx, &crate);
32463246
if ccx.sess.trans_stats() {
32473247
println("--- trans stats ---");
3248-
println!("n_static_tydescs: {}", ccx.stats.n_static_tydescs);
3248+
println!("n_static_tydescs: {}", ccx.stats.n_static_tydescs.get());
32493249
println!("n_glues_created: {}", ccx.stats.n_glues_created);
32503250
println!("n_null_glues: {}", ccx.stats.n_null_glues);
32513251
println!("n_real_glues: {}", ccx.stats.n_real_glues);

branches/try/src/librustc/middle/trans/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub struct tydesc_info {
126126
*/
127127

128128
pub struct Stats {
129-
n_static_tydescs: uint,
129+
n_static_tydescs: Cell<uint>,
130130
n_glues_created: uint,
131131
n_null_glues: uint,
132132
n_real_glues: uint,

branches/try/src/librustc/middle/trans/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl CrateContext {
211211
tcx: tcx,
212212
maps: maps,
213213
stats: @mut Stats {
214-
n_static_tydescs: 0u,
214+
n_static_tydescs: Cell::new(0u),
215215
n_glues_created: 0u,
216216
n_null_glues: 0u,
217217
n_real_glues: 0u,

0 commit comments

Comments
 (0)