From 497a8b54b5b3f9daf0ec735d443c443ac29afeab Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 20 Nov 2012 16:07:57 -0800 Subject: syntax: switch tt quoter to emit ~[tt], not tt. --- src/libsyntax/parse/parser.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0df61a7f044..925934d165f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1321,6 +1321,14 @@ impl Parser { }; } + fn parse_all_token_trees() -> ~[token_tree] { + let tts = DVec(); + while self.token != token::EOF { + tts.push(self.parse_token_tree()); + } + tts.get() + } + fn parse_matchers() -> ~[matcher] { // unification of matchers and token_trees would vastly improve // the interpolation of matchers -- cgit 1.4.1-3-g733a5