about summary refs log tree commit diff
path: root/src/test/run-make/unicode-input
diff options
context:
space:
mode:
authorAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-07-10 18:21:16 +0200
committerAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-07-15 19:55:21 +0200
commitc6b82c7566a2e1da7d0f1697335b47c8c999720e (patch)
treee2d131432e0f2ad7d1fe56a846feeab03df1791a /src/test/run-make/unicode-input
parent1900abdd9b5b5eef5d90b43555c1ae06743e50db (diff)
downloadrust-c6b82c7566a2e1da7d0f1697335b47c8c999720e.tar.gz
rust-c6b82c7566a2e1da7d0f1697335b47c8c999720e.zip
Deprecate `str::from_utf8_lossy`
Use `String::from_utf8_lossy` instead

[breaking-change]
Diffstat (limited to 'src/test/run-make/unicode-input')
-rw-r--r--src/test/run-make/unicode-input/multiple_files.rs4
-rw-r--r--src/test/run-make/unicode-input/span_length.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-make/unicode-input/multiple_files.rs b/src/test/run-make/unicode-input/multiple_files.rs
index 314949cc593..c436958171d 100644
--- a/src/test/run-make/unicode-input/multiple_files.rs
+++ b/src/test/run-make/unicode-input/multiple_files.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::{char, os, str};
+use std::{char, os};
 use std::io::{File, Command};
 use std::rand::{task_rng, Rng};
 
@@ -61,7 +61,7 @@ fn main() {
                                           main_file.as_str()
                                                    .unwrap()).as_slice())
                              .output().unwrap();
-        let err = str::from_utf8_lossy(result.error.as_slice());
+        let err = String::from_utf8_lossy(result.error.as_slice());
 
         // positive test so that this test will be updated when the
         // compiler changes.
diff --git a/src/test/run-make/unicode-input/span_length.rs b/src/test/run-make/unicode-input/span_length.rs
index 903ca69f247..913f1318ebf 100644
--- a/src/test/run-make/unicode-input/span_length.rs
+++ b/src/test/run-make/unicode-input/span_length.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::{char, os, str};
+use std::{char, os};
 use std::io::{File, Command};
 use std::rand::{task_rng, Rng};
 
@@ -57,7 +57,7 @@ fn main() {
                                                    .unwrap()).as_slice())
                              .output().unwrap();
 
-        let err = str::from_utf8_lossy(result.error.as_slice());
+        let err = String::from_utf8_lossy(result.error.as_slice());
 
         // the span should end the line (e.g no extra ~'s)
         let expected_span = format!("^{}\n", "~".repeat(n - 1));