about summary refs log tree commit diff
path: root/src/compiletest/util.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-05-11 22:45:28 -0400
committerAlex Crichton <alex@alexcrichton.com>2013-05-14 12:24:43 -0400
commit2951527528b39dbf47c02b3d329129d677ddcdfd (patch)
tree5742363dc45c5defcf2e389fdab691cd8ebb851e /src/compiletest/util.rs
parent9f104d4213ae31f4e61b210ef34b223c81c8c3af (diff)
downloadrust-2951527528b39dbf47c02b3d329129d677ddcdfd.tar.gz
rust-2951527528b39dbf47c02b3d329129d677ddcdfd.zip
compiletest: Remove #[allow(vecs_implicitly_copyable)]
Diffstat (limited to 'src/compiletest/util.rs')
-rw-r--r--src/compiletest/util.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiletest/util.rs b/src/compiletest/util.rs
index 51579c33e9a..05e5d902a47 100644
--- a/src/compiletest/util.rs
+++ b/src/compiletest/util.rs
@@ -12,7 +12,7 @@ use common::config;
 
 use core::os::getenv;
 
-pub fn make_new_path(path: ~str) -> ~str {
+pub fn make_new_path(path: &str) -> ~str {
 
     // Windows just uses PATH as the library search path, so we have to
     // maintain the current value while adding our own
@@ -20,7 +20,7 @@ pub fn make_new_path(path: ~str) -> ~str {
       Some(curr) => {
         fmt!("%s%s%s", path, path_div(), curr)
       }
-      None => path
+      None => path.to_str()
     }
 }
 
@@ -42,7 +42,7 @@ pub fn path_div() -> ~str { ~":" }
 #[cfg(target_os = "win32")]
 pub fn path_div() -> ~str { ~";" }
 
-pub fn logv(config: config, s: ~str) {
+pub fn logv(config: &config, s: ~str) {
     debug!("%s", s);
     if config.verbose { io::println(s); }
 }