about summary refs log tree commit diff
path: root/src/libregex_macros/lib.rs
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2014-05-25 03:17:19 -0700
committerRicho Healey <richo@psych0tik.net>2014-05-27 12:59:31 -0700
commit1f1b2e42d76ba1cd884adc49922636a6c2ac1b2f (patch)
tree2a56d5ceda84c1a58796fe0fc4e7cea38a9336f6 /src/libregex_macros/lib.rs
parent4348e23b269739657d934b532ad061bfd6d92309 (diff)
downloadrust-1f1b2e42d76ba1cd884adc49922636a6c2ac1b2f.tar.gz
rust-1f1b2e42d76ba1cd884adc49922636a6c2ac1b2f.zip
std: Rename strbuf operations to string
[breaking-change]
Diffstat (limited to 'src/libregex_macros/lib.rs')
-rw-r--r--src/libregex_macros/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libregex_macros/lib.rs b/src/libregex_macros/lib.rs
index 971b727a165..71e3d06cf96 100644
--- a/src/libregex_macros/lib.rs
+++ b/src/libregex_macros/lib.rs
@@ -97,7 +97,7 @@ fn native(cx: &mut ExtCtxt, sp: codemap::Span, tts: &[ast::TokenTree])
 
     let mut gen = NfaGen {
         cx: &*cx, sp: sp, prog: prog,
-        names: re.names_iter().collect(), original: re.as_str().to_strbuf(),
+        names: re.names_iter().collect(), original: re.as_str().to_string(),
     };
     MacExpr::new(gen.code())
 }
@@ -611,7 +611,7 @@ fn parse(cx: &mut ExtCtxt, tts: &[ast::TokenTree]) -> Option<String> {
     let regex = match entry.node {
         ast::ExprLit(lit) => {
             match lit.node {
-                ast::LitStr(ref s, _) => s.to_str().to_strbuf(),
+                ast::LitStr(ref s, _) => s.to_str().to_string(),
                 _ => {
                     cx.span_err(entry.span, format!(
                         "expected string literal but got `{}`",