about summary refs log tree commit diff
path: root/src/libcore/io.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-09-18 22:35:28 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-10-12 20:43:37 -0700
commit30a62793fa54a413a265591879c9775b798d762c (patch)
tree2cac5f5f52fede875ed3cf1f7f576b1ecf543482 /src/libcore/io.rs
parent2d7d12b902a9f6237994f74888878220cb2ffbed (diff)
downloadrust-30a62793fa54a413a265591879c9775b798d762c.tar.gz
rust-30a62793fa54a413a265591879c9775b798d762c.zip
Make moves explicit in core tests
Diffstat (limited to 'src/libcore/io.rs')
-rw-r--r--src/libcore/io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/io.rs b/src/libcore/io.rs
index 865b8013fb0..fd0fcbbe1c1 100644
--- a/src/libcore/io.rs
+++ b/src/libcore/io.rs
@@ -737,7 +737,7 @@ pub fn BytesWriter() -> BytesWriter {
 pub fn with_bytes_writer(f: fn(Writer)) -> ~[u8] {
     let wr = @BytesWriter();
     f(wr as Writer);
-    wr.buf.check_out(|buf| buf)
+    wr.buf.check_out(|buf| move buf)
 }
 
 pub fn with_str_writer(f: fn(Writer)) -> ~str {
@@ -747,7 +747,7 @@ pub fn with_str_writer(f: fn(Writer)) -> ~str {
     v.push(0);
     assert str::is_utf8(v);
 
-    unsafe { move ::cast::transmute(v) }
+    unsafe { move ::cast::transmute(move v) }
 }
 
 // Utility functions