diff options
| author | bors <bors@rust-lang.org> | 2014-03-29 18:56:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-29 18:56:36 -0700 |
| commit | d79fbba0db84b2d27440f8feba715dffd3aeaa01 (patch) | |
| tree | d5f8701b97fcf2fc596a52215ad96462c1eb981e /src/libsyntax/util/parser_testing.rs | |
| parent | 86890b9e7c5db28ac2da5cd63d1a51d63a5e6bec (diff) | |
| parent | c356e3ba6a12c3294a9a428ef9120cff9306bf4b (diff) | |
| download | rust-d79fbba0db84b2d27440f8feba715dffd3aeaa01.tar.gz rust-d79fbba0db84b2d27440f8feba715dffd3aeaa01.zip | |
auto merge of #13203 : Kimundi/rust/de-map-vec3, r=cmr
They required unnecessary temporaries, are replaced with iterators, and would conflict with a possible future `Iterable` trait.
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index b62990036e5..eb7b3162b52 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -70,7 +70,7 @@ pub fn string_to_pat(source_str: ~str) -> @ast::Pat { // convert a vector of strings to a vector of ast::Ident's pub fn strs_to_idents(ids: Vec<&str> ) -> Vec<ast::Ident> { - ids.map(|u| token::str_to_ident(*u)) + ids.iter().map(|u| token::str_to_ident(*u)).collect() } // does the given string match the pattern? whitespace in the first string |
