generate signature for foreign symbols

This commit is contained in:
Folkert 2020-11-06 23:46:31 +01:00
parent 4b8392696e
commit a6e39e66f1
8 changed files with 75 additions and 31 deletions

View file

@ -2309,7 +2309,7 @@ fn fabricate_host_exposed_def<'a>(
match annotation.typ.shallow_dealias() {
Type::Function(args, _, _) => {
for i in 0..args.len() {
let name = format!("closure_arg_{}", i);
let name = format!("closure_arg_{}_{}", ident, i);
let arg_symbol = {
let ident = name.clone().into();
@ -2343,7 +2343,7 @@ fn fabricate_host_exposed_def<'a>(
};
let effect_closure_symbol = {
let name = "effect_closure";
let name = format!("effect_closure_{}", ident);
let ident = name.clone().into();
scope