about summary refs log tree commit diff
path: root/src/libcore/stackwalk.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-06-30 16:19:07 -0700
committerBrian Anderson <banderson@mozilla.com>2012-07-01 19:19:32 -0700
commitd1fc2b5995fdef69fe1dbdbba3703398c0aa547b (patch)
treeb6d14fd0e920512a29c64a671cc2a5bb90132abb /src/libcore/stackwalk.rs
parent13a8f545388929a07af110a950441e6a1b88473a (diff)
downloadrust-d1fc2b5995fdef69fe1dbdbba3703398c0aa547b.tar.gz
rust-d1fc2b5995fdef69fe1dbdbba3703398c0aa547b.zip
Convert to new closure syntax
Diffstat (limited to 'src/libcore/stackwalk.rs')
-rw-r--r--src/libcore/stackwalk.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/stackwalk.rs b/src/libcore/stackwalk.rs
index d6c78a4c575..4af007b14dd 100644
--- a/src/libcore/stackwalk.rs
+++ b/src/libcore/stackwalk.rs
@@ -18,7 +18,7 @@ fn walk_stack(visit: fn(frame) -> bool) {
 
     #debug("beginning stack walk");
 
-    do frame_address { |frame_pointer|
+    do frame_address |frame_pointer| {
         let mut frame_address: *word = unsafe {
             reinterpret_cast(frame_pointer)
         };
@@ -44,7 +44,7 @@ fn walk_stack(visit: fn(frame) -> bool) {
 
 #[test]
 fn test_simple() {
-    for walk_stack { |_frame|
+    for walk_stack |_frame| {
     }
 }
 
@@ -53,7 +53,7 @@ fn test_simple_deep() {
     fn run(i: int) {
         if i == 0 { ret }
 
-        for walk_stack { |_frame|
+        for walk_stack |_frame| {
             unsafe {
                 breakpoint();
             }