about summary refs log tree commit diff
path: root/src/compiletest
diff options
context:
space:
mode:
authorYoungsoo Son <ysoo.son@samsung.com>2013-05-10 20:08:56 +0900
committerYoungsoo Son <ysoo.son@samsung.com>2013-05-10 20:08:56 +0900
commit24ef88cee96de837370ec370ed4d1f3aa3530a20 (patch)
tree931a1c73110fa3316d51f19f618dc07167d67ea8 /src/compiletest
parentb7da97504943c79185548881aab88d6a0e2118fd (diff)
renamed str::from_slice to str::to_owned
Diffstat (limited to 'src/compiletest')
-rw-r--r--src/compiletest/header.rs2
-rw-r--r--src/compiletest/runtest.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs
index 28bbbda9663..7e617aa0006 100644
--- a/src/compiletest/header.rs
+++ b/src/compiletest/header.rs
@@ -91,7 +91,7 @@ pub fn is_test_ignored(config: config, testfile: &Path) -> bool {
     return false;
 
     fn xfail_target() -> ~str {
-        ~"xfail-" + str::from_slice(os::SYSNAME)
+        ~"xfail-" + str::to_owned(os::SYSNAME)
     }
 }
 
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs
index 33f6dd36161..62c2612f2dd 100644
--- a/src/compiletest/runtest.rs
+++ b/src/compiletest/runtest.rs
@@ -371,7 +371,7 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError],
             was_expected = true;
         }
 
-        if !was_expected && is_compiler_error_or_warning(str::from_slice(line)) {
+        if !was_expected && is_compiler_error_or_warning(str::to_owned(line)) {
             fatal_ProcRes(fmt!("unexpected compiler error or warning: '%s'",
                                line),
                           ProcRes);
@@ -596,7 +596,7 @@ fn make_lib_name(config: config, auxfile: &Path, testfile: &Path) -> Path {
 
 fn make_exe_name(config: config, testfile: &Path) -> Path {
     Path(output_base_name(config, testfile).to_str() +
-            str::from_slice(os::EXE_SUFFIX))
+            str::to_owned(os::EXE_SUFFIX))
 }
 
 fn make_run_args(config: config, _props: TestProps, testfile: &Path) ->