Skip to content

Commit a590b8f

Browse files
committed
Everything but the codegen
Now I just have to figure out how calls to new_parser_from_tts are generated, to remove the ext_cx.cfg() parameter when building with syntax, because I do that manually, the tests pass! The tests pass!
1 parent 737dc59 commit a590b8f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libbindgen/src/ir/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl<'ctx> BindgenContext<'ctx> {
397397
let sess = parse::ParseSess::new();
398398
let mut loader = base::DummyResolver;
399399
let mut ctx =
400-
GenContext(base::ExtCtxt::new(&sess, vec![], cfg, &mut loader));
400+
GenContext(base::ExtCtxt::new(&sess, cfg, &mut loader));
401401

402402
ctx.0.bt_push(ExpnInfo {
403403
call_site: self.span,

libbindgen/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#![cfg_attr(feature = "clippy", feature(plugin))]
99
#![cfg_attr(feature = "clippy", plugin(clippy))]
1010

11+
#![cfg_attr(not(feature = "syntex"), feature(rustc_private))]
12+
1113
#![deny(missing_docs)]
1214
#![deny(warnings)]
1315

0 commit comments

Comments
 (0)