diff options
| author | bors <bors@rust-lang.org> | 2014-05-27 17:46:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-27 17:46:48 -0700 |
| commit | 911cc9c35234ab12a4b9a6fc1cb35b52556f242d (patch) | |
| tree | f434006eca9cc58dd01c2a033c505d606d2fced2 /src/libregex/parse/mod.rs | |
| parent | 30bf73fd789ad1414284f59b005e85304ff963ad (diff) | |
| parent | c256dcf8b66fb7100e2d735d6640cf76cb2d22f5 (diff) | |
| download | rust-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/libregex/parse/mod.rs')
| -rw-r--r-- | src/libregex/parse/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libregex/parse/mod.rs b/src/libregex/parse/mod.rs index bc365582ca4..87b6e2b1104 100644 --- a/src/libregex/parse/mod.rs +++ b/src/libregex/parse/mod.rs @@ -222,7 +222,7 @@ impl<'a> Parser<'a> { self.caps += 1; self.stack.push(Paren(self.flags, self.caps, - "".to_strbuf())) + "".to_string())) } } ')' => { @@ -796,7 +796,7 @@ impl<'a> Parser<'a> { } if self.cur() == ':' { // Save the old flags with the opening paren. - self.stack.push(Paren(self.flags, 0, "".to_strbuf())); + self.stack.push(Paren(self.flags, 0, "".to_string())); } self.flags = flags; return Ok(()) @@ -922,7 +922,7 @@ impl<'a> Parser<'a> { fn err<T>(&self, msg: &str) -> Result<T, Error> { Err(Error { pos: self.chari, - msg: msg.to_strbuf(), + msg: msg.to_string(), }) } @@ -942,7 +942,7 @@ impl<'a> Parser<'a> { } fn slice(&self, start: uint, end: uint) -> String { - str::from_chars(self.chars.as_slice().slice(start, end)).to_strbuf() + str::from_chars(self.chars.as_slice().slice(start, end)).to_string() } } |
