From d8e1581c8be39c4f459d3b61dad2199e93f9d0c9 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 6 Nov 2016 09:44:12 -0800 Subject: [PATCH] Fix new_parser_from_tts call --- quasi_codegen/src/lib.rs | 8 -------- quasi_tests/tests/test.rs.in | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/quasi_codegen/src/lib.rs b/quasi_codegen/src/lib.rs index 617c2bec..46f0da31 100644 --- a/quasi_codegen/src/lib.rs +++ b/quasi_codegen/src/lib.rs @@ -780,13 +780,6 @@ fn expand_parse_call(cx: &ExtCtxt, let (cx_expr, tts_expr) = expand_tts(cx, sp, tts); - let cfg_call = builder.expr() - .method_call("clone") - .method_call("cfg") - .id("ext_cx") - .build() - .build(); - let parse_sess_call = builder.expr().method_call("parse_sess") .id("ext_cx") .build(); @@ -799,7 +792,6 @@ fn expand_parse_call(cx: &ExtCtxt, let new_parser_call = builder.expr().call() .build_path(new_parser_from_tts_path) .with_arg(parse_sess_call) - .with_arg(cfg_call) .with_arg(tts_expr) .build(); diff --git a/quasi_tests/tests/test.rs.in b/quasi_tests/tests/test.rs.in index f36e750e..cf369d80 100644 --- a/quasi_tests/tests/test.rs.in +++ b/quasi_tests/tests/test.rs.in @@ -30,10 +30,9 @@ fn make_ext_ctxt<'a>(sess: &'a parse::ParseSess, } }; - let cfg = Vec::new(); let ecfg = expand::ExpansionConfig::default(String::new()); - let mut cx = ExtCtxt::new(&sess, cfg, ecfg, macro_loader); + let mut cx = ExtCtxt::new(&sess, ecfg, macro_loader); cx.bt_push(info); cx