Skip to content

Commit 7676c23

Browse files
committed
---
yaml --- r: 10551 b: refs/heads/snap-stage3 c: 52f1904 h: refs/heads/master i: 10549: 6b1b597 10547: 31a3d27 10543: 8ffa087 v: v3
1 parent 5c50e11 commit 7676c23

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 21d56f2c68bf54e52611db486f900e93d1d2a349
4+
refs/heads/snap-stage3: 52f1904ddde95fb7d8e654b4cc78a4f162385275
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/libcore/arc.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,14 @@ impl methods<T> for exclusive<T> {
102102
fn with<U>(f: fn(sys::condition, x: &T) -> U) -> U {
103103
unsafe {
104104
let ptr: ~arc_data<ex_data<T>> = unsafe::reinterpret_cast(*self);
105-
let rec: &ex_data<T> = &(*ptr).data;
105+
let r = {
106+
let rec: &ex_data<T> = &(*ptr).data;
107+
rec.lock.lock_cond() {|c|
108+
f(c, &rec.data)
109+
}
110+
};
106111
unsafe::forget(ptr);
107-
rec.lock.lock_cond() {|c|
108-
f(c, &rec.data)
109-
}
112+
r
110113
}
111114
}
112115
}

branches/snap-stage3/src/libsyntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ fn id_visitor(vfn: fn@(node_id)) -> visit::vt<()> {
454454

455455
visit_expr: fn@(e: @expr) {
456456
vfn(e.id);
457-
alt e.node {
457+
alt e.node {
458458
expr_index(*) | expr_assign_op(*) |
459459
expr_unary(*) | expr_binary(*) {
460460
vfn(ast_util::op_expr_callee_id(e));

0 commit comments

Comments
 (0)