aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-07-16 15:33:30 -0700
committerPatrick Walton <[email protected]>2010-07-16 15:34:25 -0700
commit1ac01e16cf8d85334c25d68fc31db1beac740fc0 (patch)
tree3dad7060b44ff869681749f9d5eb14bff7d33fc0 /src/lib
parentUn-XFAIL a couple tests fixed by pcwalton's new typechecker. Closes #50. Clos... (diff)
downloadrust-1ac01e16cf8d85334c25d68fc31db1beac740fc0.tar.xz
rust-1ac01e16cf8d85334c25d68fc31db1beac740fc0.zip
Ensure that functions that should return a value do; issue 41
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/_io.rs1
-rw-r--r--src/lib/_str.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/_io.rs b/src/lib/_io.rs
index d41ab132..e171e617 100644
--- a/src/lib/_io.rs
+++ b/src/lib/_io.rs
@@ -15,6 +15,7 @@ fn new_buf() -> vec[u8] {
}
// FIXME (issue #93): should be:
// ret _vec.alloc[u8](default_bufsz());
+ ret v;
}
fn new_buf_reader(str s) -> buf_reader {
diff --git a/src/lib/_str.rs b/src/lib/_str.rs
index 167b9f67..062d8bf1 100644
--- a/src/lib/_str.rs
+++ b/src/lib/_str.rs
@@ -9,6 +9,7 @@ native "rust" mod rustrt {
}
fn is_utf8(vec[u8] v) -> bool {
+ fail; // FIXME
}
fn alloc(uint n_bytes) -> str {