Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #64 from serde-rs/cfg
Browse files Browse the repository at this point in the history
Fix new_parser_from_tts call
  • Loading branch information
dtolnay authored Nov 6, 2016
2 parents 0a7b676 + d8e1581 commit 2660196
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions quasi_codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();

Expand Down
3 changes: 1 addition & 2 deletions quasi_tests/tests/test.rs.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2660196

Please sign in to comment.