diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-04-22 14:27:30 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-04-29 14:30:53 -0700 |
| commit | b0522a497ccfcc7b124d77121d8f076af7f09b71 (patch) | |
| tree | fd6ce4ae9b4ff0ea4e538240bdef8ac72712dc93 /src/libcore/task/mod.rs | |
| parent | 58791c2fd884ad1af626df478c2b509e894b29ee (diff) | |
| download | rust-b0522a497ccfcc7b124d77121d8f076af7f09b71.tar.gz rust-b0522a497ccfcc7b124d77121d8f076af7f09b71.zip | |
librustc: Remove `ptr::addr_of`.
Diffstat (limited to 'src/libcore/task/mod.rs')
| -rw-r--r-- | src/libcore/task/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 2163a0e325f..96429932b18 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -1028,10 +1028,10 @@ fn avoid_copying_the_body(spawnfn: &fn(v: ~fn())) { let (p, ch) = stream::<uint>(); let x = ~1; - let x_in_parent = ptr::addr_of(&(*x)) as uint; + let x_in_parent = ptr::to_unsafe_ptr(&*x) as uint; do spawnfn || { - let x_in_child = ptr::addr_of(&(*x)) as uint; + let x_in_child = ptr::to_unsafe_ptr(&*x) as uint; ch.send(x_in_child); } |
