Revert "Reference and whitespace fixes."

This reverts commit 52f1904ddd.
This commit is contained in:
Tim Chevalier 2012-06-16 15:17:10 -07:00
parent 416b3bfea4
commit 69447e9002
2 changed files with 5 additions and 8 deletions

View File

@ -102,14 +102,11 @@ impl methods<T> for exclusive<T> {
fn with<U>(f: fn(sys::condition, x: &T) -> U) -> U {
unsafe {
let ptr: ~arc_data<ex_data<T>> = unsafe::reinterpret_cast(*self);
let r = {
let rec: &ex_data<T> = &(*ptr).data;
rec.lock.lock_cond() {|c|
f(c, &rec.data)
}
};
let rec: &ex_data<T> = &(*ptr).data;
unsafe::forget(ptr);
r
rec.lock.lock_cond() {|c|
f(c, &rec.data)
}
}
}
}

View File

@ -454,7 +454,7 @@ fn id_visitor(vfn: fn@(node_id)) -> visit::vt<()> {
visit_expr: fn@(e: @expr) {
vfn(e.id);
alt e.node {
alt e.node {
expr_index(*) | expr_assign_op(*) |
expr_unary(*) | expr_binary(*) {
vfn(ast_util::op_expr_callee_id(e));