diff options
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 9d286f1759e..a421d44e2e3 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -82,7 +82,7 @@ pub fn string_to_pat(source_str : @str) -> @ast::pat { } // convert a vector of strings to a vector of ast::idents -pub fn strs_to_idents(ids: ~[&str]) -> ~[ast::ident] { +pub fn strs_to_idents(ids: ~[&str]) -> ~[ast::Ident] { ids.map(|u| token::str_to_ident(*u)) } |
