diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-06 15:38:10 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-06 15:38:10 -0800 |
| commit | 0631b466c23ffdb1edb2997a8da2702cfe6fcd4a (patch) | |
| tree | 3c9f6076565b544f450e98102825a85df1b55f3b /src/libsyntax/parse/mod.rs | |
| parent | 771fe9026a38cb673d0928fea1f6ebd4ba796e43 (diff) | |
| parent | d85c017f92156d0d6854292c976c13c3312bba8e (diff) | |
| download | rust-0631b466c23ffdb1edb2997a8da2702cfe6fcd4a.tar.gz rust-0631b466c23ffdb1edb2997a8da2702cfe6fcd4a.zip | |
rollup merge of #19430: pczarn/interp_tt-cleanup
Conflicts: src/libsyntax/parse/parser.rs
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 3335566801a..dc423c8d633 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -296,7 +296,9 @@ pub fn tts_to_parser<'a>(sess: &'a ParseSess, tts: Vec<ast::TokenTree>, cfg: ast::CrateConfig) -> Parser<'a> { let trdr = lexer::new_tt_reader(&sess.span_diagnostic, None, None, tts); - Parser::new(sess, cfg, box trdr) + let mut p = Parser::new(sess, cfg, box trdr); + p.check_unknown_macro_variable(); + p } // FIXME (Issue #16472): The `with_hygiene` mod should go away after |
