diff options
| author | John Clements <clements@racket-lang.org> | 2013-09-24 12:31:24 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-24 12:31:24 -0700 |
| commit | 876fce2751c9d58fd803672809a8ad2cf2814504 (patch) | |
| tree | 7f640ded5535934eae108857de84f3cf2eb38a1c /src/libsyntax/parse/mod.rs | |
| parent | 32f97cc891a6a2857338b4fcc7bb022e609eac1c (diff) | |
| download | rust-876fce2751c9d58fd803672809a8ad2cf2814504.tar.gz rust-876fce2751c9d58fd803672809a8ad2cf2814504.zip | |
cleanup
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 91ef55c78f6..f5fe53ddb4f 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -324,17 +324,10 @@ mod test { use abi; use parse::parser::Parser; use parse::token::{str_to_ident}; - use util::parser_testing::{string_to_tts_and_sess, string_to_parser}; + use util::parser_testing::{string_to_tts, string_to_parser}; use util::parser_testing::{string_to_expr, string_to_item}; use util::parser_testing::string_to_stmt; - // map a string to tts, return the tt without its parsesess - fn string_to_tts_only(source_str : @str) -> ~[ast::token_tree] { - let (tts,_ps) = string_to_tts_and_sess(source_str); - tts - } - - #[cfg(test)] fn to_json_str<E : Encodable<extra::json::Encoder>>(val: @E) -> ~str { do io::with_str_writer |writer| { let mut encoder = extra::json::Encoder(writer); @@ -396,7 +389,7 @@ mod test { } #[test] fn string_to_tts_1 () { - let (tts,_ps) = string_to_tts_and_sess(@"fn a (b : int) { b; }"); + let tts = string_to_tts(@"fn a (b : int) { b; }"); assert_eq!(to_json_str(@tts), ~"[\ {\ |
