remove pub fn

This commit is contained in:
Folkert 2021-04-01 21:45:50 +02:00
parent ff3f231155
commit 61b7be7838
3 changed files with 4 additions and 13 deletions

View file

@ -6075,10 +6075,7 @@ fn call_by_name<'a>(
// exactly once.
match &mut procs.pending_specializations {
Some(pending_specializations) => {
let is_imported = assigned.module_id() != proc_name.module_id();
// builtins are currently (re)defined in each module, so not really imported
let is_builtin = proc_name.is_builtin();
if is_imported && !is_builtin {
if env.is_imported_symbol(proc_name) {
add_needed_external(procs, env, original_fn_var, proc_name);
} else {
// register the pending specialization, so this gets code genned later