diff options
| author | bors <bors@rust-lang.org> | 2014-01-02 15:56:49 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-02 15:56:49 -0800 |
| commit | 27ce4d3f79cdc021a6bfe0f7009977e07a368770 (patch) | |
| tree | be234bc0f4afdca779c9043b935fe8ea1b4ece21 /src/libsyntax/util/parser_testing.rs | |
| parent | 2e98a93ba991e2390b0068af72c5600b659cfb66 (diff) | |
| parent | f3eee0ebada8e67dbba6574567456a9f1a946d28 (diff) | |
| download | rust-27ce4d3f79cdc021a6bfe0f7009977e07a368770.tar.gz rust-27ce4d3f79cdc021a6bfe0f7009977e07a368770.zip | |
auto merge of #11226 : pcwalton/rust/mutable-parser, r=pcwalton
r? @alexcrichton
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 2d13cdb9bbb..01e050c1ffe 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -55,7 +55,7 @@ pub fn string_to_crate (source_str : @str) -> ast::Crate { // parse a string, return a crate and the ParseSess pub fn string_to_crate_and_sess (source_str : @str) -> (ast::Crate,@mut ParseSess) { - let (p,ps) = string_to_parser_and_sess(source_str); + let (mut p,ps) = string_to_parser_and_sess(source_str); (p.parse_crate_mod(),ps) } |
