about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-11-29 12:05:56 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-11-29 12:05:56 -0800
commit3beff12309f4e78c74a9353eb0b68c2c8bf8e887 (patch)
treea8a857c71a77ecf51078172b8bbc9922e92fde7b
parent9678abedecfb1b57158dcd5d1ebba9914a089dc5 (diff)
downloadrust-3beff12309f4e78c74a9353eb0b68c2c8bf8e887.tar.gz
rust-3beff12309f4e78c74a9353eb0b68c2c8bf8e887.zip
test: Fix broken resource-cycle.rs. r=tinderbox
-rw-r--r--src/test/run-pass/resource-cycle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/resource-cycle.rs b/src/test/run-pass/resource-cycle.rs
index e9ec45d97e9..72466d5513d 100644
--- a/src/test/run-pass/resource-cycle.rs
+++ b/src/test/run-pass/resource-cycle.rs
@@ -8,7 +8,7 @@ impl r : Drop {
     fn finalize(&self) {
         unsafe {
             debug!("r's dtor: self = %x, self.v = %x, self.v's value = %x",
-              cast::reinterpret_cast::<*r, uint>(&ptr::addr_of(&self)),
+              cast::reinterpret_cast::<*r, uint>(&ptr::addr_of(self)),
               cast::reinterpret_cast::<**int, uint>(&ptr::addr_of(&(self.v))),
               cast::reinterpret_cast::<*int, uint>(&self.v));
             let v2: ~int = cast::reinterpret_cast(&self.v);