improve SimValue<T> to generally be more like Expr<T> #27

Merged
programmerjake merged 7 commits from programmerjake/fayalite:improve-simvalue into master 2025-04-02 05:28:30 +00:00
Showing only changes of commit e0f978fbb6 - Show all commits

View file

@ -377,7 +377,7 @@ impl ModuleFn {
module_kind,
vis,
sig,
block,
mut block,
struct_generics,
the_struct,
} = match self.0 {
@ -439,6 +439,12 @@ impl ModuleFn {
body_sig
.inputs
.insert(0, parse_quote! { m: &::fayalite::module::ModuleBuilder });
block.stmts.insert(
0,
parse_quote! {
let _ = m;
},
);
let body_fn = ItemFn {
attrs: vec![],
vis: Visibility::Inherited,