about summary refs log tree commit diff
path: root/src/libstd/stackwalk.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-01 12:52:29 -0700
committerbors <bors@rust-lang.org>2013-08-01 12:52:29 -0700
commit82b24559e6aa0914f8a49e0a9dbfb3cf35372515 (patch)
treec2b0ff9b26400eac3f3405d78fe89dc07607c3ae /src/libstd/stackwalk.rs
parent479809a267dbbcc3e2ec87da677c63430d3d229a (diff)
parent94f1a5d6f8ecd30c6f59dfeaacdd5962f58bc44c (diff)
downloadrust-82b24559e6aa0914f8a49e0a9dbfb3cf35372515.tar.gz
rust-82b24559e6aa0914f8a49e0a9dbfb3cf35372515.zip
auto merge of #8190 : thestinger/rust/for, r=thestinger
Diffstat (limited to 'src/libstd/stackwalk.rs')
-rw-r--r--src/libstd/stackwalk.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstd/stackwalk.rs b/src/libstd/stackwalk.rs
index c3e3ca57a8e..cc516fb559e 100644
--- a/src/libstd/stackwalk.rs
+++ b/src/libstd/stackwalk.rs
@@ -25,7 +25,7 @@ pub fn Frame(fp: *Word) -> Frame {
     }
 }
 
-pub fn walk_stack(visit: &fn(Frame) -> bool) -> bool {
+pub fn walk_stack(visit: &fn(Frame)) {
 
     debug!("beginning stack walk");
 
@@ -51,12 +51,11 @@ pub fn walk_stack(visit: &fn(Frame) -> bool) -> bool {
             }
         }
     }
-    return true;
 }
 
 #[test]
 fn test_simple() {
-    for walk_stack |_frame| {
+    do walk_stack |_frame| {
     }
 }
 
@@ -65,7 +64,7 @@ fn test_simple_deep() {
     fn run(i: int) {
         if i == 0 { return }
 
-        for walk_stack |_frame| {
+        do walk_stack |_frame| {
             // Would be nice to test something here...
         }
         run(i - 1);