summary refs log tree commit diff
path: root/src/libsyntax/parse/common.rs
diff options
context:
space:
mode:
authorPaul Stansifer <paul.stansifer@gmail.com>2012-07-03 18:39:37 -0700
committerPaul Stansifer <paul.stansifer@gmail.com>2012-07-05 18:09:31 -0700
commit62db5706e668166f7196463bf34939da7d51093d (patch)
treef75b731244e277afc1470cc53ed5fe5cd7a39965 /src/libsyntax/parse/common.rs
parentf94065372001f5d34b4fde73f2e6dea8aba28212 (diff)
downloadrust-62db5706e668166f7196463bf34939da7d51093d.tar.gz
rust-62db5706e668166f7196463bf34939da7d51093d.zip
Start letting the parser catch interpolated ASTs.
Diffstat (limited to 'src/libsyntax/parse/common.rs')
-rw-r--r--src/libsyntax/parse/common.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs
index c77d0ba67ee..d4331ee766f 100644
--- a/src/libsyntax/parse/common.rs
+++ b/src/libsyntax/parse/common.rs
@@ -50,6 +50,8 @@ impl parser_common for parser {
     fn parse_ident() -> ast::ident {
         alt copy self.token {
           token::IDENT(i, _) { self.bump(); ret self.get_str(i); }
+          token::ACTUALLY(token::w_ident(*)) { self.bug(
+              "ident interpolation not converted to real token"); }
           _ { self.fatal("expecting ident, found "
                       + token_to_str(self.reader, self.token)); }
         }