about summary refs log tree commit diff
path: root/src/compiletest/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-27 17:46:48 -0700
committerbors <bors@rust-lang.org>2014-05-27 17:46:48 -0700
commit911cc9c35234ab12a4b9a6fc1cb35b52556f242d (patch)
treef434006eca9cc58dd01c2a033c505d606d2fced2 /src/compiletest/errors.rs
parent30bf73fd789ad1414284f59b005e85304ff963ad (diff)
parentc256dcf8b66fb7100e2d735d6640cf76cb2d22f5 (diff)
downloadrust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.tar.gz
rust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.zip
auto merge of #14414 : richo/rust/features/nerf_unused_string_fns, r=alexcrichton
This should block on #14323
Diffstat (limited to 'src/compiletest/errors.rs')
-rw-r--r--src/compiletest/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiletest/errors.rs b/src/compiletest/errors.rs
index f3ebe30b37d..c96e688c290 100644
--- a/src/compiletest/errors.rs
+++ b/src/compiletest/errors.rs
@@ -31,8 +31,8 @@ pub fn load_errors(re: &Regex, testfile: &Path) -> Vec<ExpectedError> {
 fn parse_expected(line_num: uint, line: &str, re: &Regex) -> Option<ExpectedError> {
     re.captures(line).and_then(|caps| {
         let adjusts = caps.name("adjusts").len();
-        let kind = caps.name("kind").to_ascii().to_lower().into_str().to_strbuf();
-        let msg = caps.name("msg").trim().to_strbuf();
+        let kind = caps.name("kind").to_ascii().to_lower().into_str().to_string();
+        let msg = caps.name("msg").trim().to_string();
 
         debug!("line={} kind={} msg={}", line_num, kind, msg);
         Some(ExpectedError {