adapt to changes in rtfm-syntax

This commit is contained in:
Jorge Aparicio 2019-08-20 15:11:24 +02:00
parent 2f4f185778
commit 0e146f8d11
11 changed files with 28 additions and 14 deletions

View file

@ -83,6 +83,7 @@ pub fn codegen(
let attrs = &init.attrs;
let stmts = &init.stmts;
let section = util::link_section("text", core);
let locals_pat = locals_pat.iter();
let user_init = Some(quote!(
#(#attrs)*
#cfg_core
@ -102,6 +103,7 @@ pub fn codegen(
const_app = Some(constructor);
}
let locals_new = locals_new.iter();
let call_init =
Some(quote!(let late = #name(#(#locals_new,)* #name::Context::new(core.into()));));