mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
remove pub fn
This commit is contained in:
parent
ff3f231155
commit
61b7be7838
3 changed files with 4 additions and 13 deletions
|
@ -2119,7 +2119,7 @@ fn list_map3(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Dict.hashTestOnly : k, v -> Nat
|
/// Dict.hashTestOnly : k, v -> Nat
|
||||||
pub fn dict_hash_test_only(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
fn dict_hash_test_only(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
||||||
lowlevel_2(symbol, LowLevel::Hash, var_store)
|
lowlevel_2(symbol, LowLevel::Hash, var_store)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6075,10 +6075,7 @@ fn call_by_name<'a>(
|
||||||
// exactly once.
|
// exactly once.
|
||||||
match &mut procs.pending_specializations {
|
match &mut procs.pending_specializations {
|
||||||
Some(pending_specializations) => {
|
Some(pending_specializations) => {
|
||||||
let is_imported = assigned.module_id() != proc_name.module_id();
|
if env.is_imported_symbol(proc_name) {
|
||||||
// builtins are currently (re)defined in each module, so not really imported
|
|
||||||
let is_builtin = proc_name.is_builtin();
|
|
||||||
if is_imported && !is_builtin {
|
|
||||||
add_needed_external(procs, env, original_fn_var, proc_name);
|
add_needed_external(procs, env, original_fn_var, proc_name);
|
||||||
} else {
|
} else {
|
||||||
// register the pending specialization, so this gets code genned later
|
// register the pending specialization, so this gets code genned later
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use libloading::Library;
|
use libloading::Library;
|
||||||
use roc_build::link::module_to_dylib;
|
use roc_build::link::module_to_dylib;
|
||||||
use roc_build::program::FunctionIterator;
|
use roc_build::program::FunctionIterator;
|
||||||
use roc_can::builtins::{builtin_defs_map, dict_hash_test_only};
|
use roc_can::builtins::builtin_defs_map;
|
||||||
use roc_can::def::Def;
|
use roc_can::def::Def;
|
||||||
use roc_collections::all::{MutMap, MutSet};
|
use roc_collections::all::{MutMap, MutSet};
|
||||||
use roc_module::symbol::Symbol;
|
use roc_module::symbol::Symbol;
|
||||||
|
@ -20,13 +20,7 @@ fn promote_expr_to_module(src: &str) -> String {
|
||||||
buffer
|
buffer
|
||||||
}
|
}
|
||||||
pub fn test_builtin_defs(symbol: Symbol, var_store: &mut VarStore) -> Option<Def> {
|
pub fn test_builtin_defs(symbol: Symbol, var_store: &mut VarStore) -> Option<Def> {
|
||||||
match builtin_defs_map(symbol, var_store) {
|
builtin_defs_map(symbol, var_store)
|
||||||
Some(def) => Some(def),
|
|
||||||
None => match symbol {
|
|
||||||
Symbol::DICT_TEST_HASH => Some(dict_hash_test_only(symbol, var_store)),
|
|
||||||
_ => None,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is not actually dead code, but only used by cfg_test modules
|
// this is not actually dead code, but only used by cfg_test modules
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue