diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:25:25 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:57:03 +1000 |
| commit | ccd0ac59e9a918f3c2a174e31213286dc6867d37 (patch) | |
| tree | 613e9e26394be216bfb2dc56dba0391ca6486545 /src/libsyntax/parse | |
| parent | 5a711ea7c317ea90f03d5118dbb2e19e1622bc29 (diff) | |
| download | rust-ccd0ac59e9a918f3c2a174e31213286dc6867d37.tar.gz rust-ccd0ac59e9a918f3c2a174e31213286dc6867d37.zip | |
std: remove str::{connect,concat}*.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 89fd5c3762a..a6933c16483 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -116,7 +116,7 @@ pub fn strip_doc_comment_decoration(comment: &str) -> ~str { let lines = block_trim(lines, ~"\t ", None); let lines = block_trim(lines, ~"*", Some(1u)); let lines = block_trim(lines, ~"\t ", None); - return str::connect(lines, "\n"); + return lines.connect("\n"); } fail!("not a doc-comment: %s", comment); diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 3ff894c267b..03b4c0c5ca1 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4002,9 +4002,7 @@ impl Parser { fmt!("illegal ABI: \ expected one of [%s], \ found `%s`", - str::connect_slices( - abi::all_names(), - ", "), + abi::all_names().connect(", "), word)); } } |
