mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-08 19:10:23 +00:00
remove argument from load_and_typecheck
This commit is contained in:
parent
d6c32ded7d
commit
92da3973e7
6 changed files with 7 additions and 26 deletions
|
@ -10,8 +10,6 @@ pub fn load_module(
|
|||
roc_cache_dir: RocCacheDir<'_>,
|
||||
threading: Threading,
|
||||
) -> LoadedModule {
|
||||
let subs_by_module = Default::default();
|
||||
|
||||
let load_config = LoadConfig {
|
||||
target_info: TargetInfo::default_x86_64(), // editor only needs type info, so this is unused
|
||||
render: roc_reporting::report::RenderTarget::ColorTerminal,
|
||||
|
@ -21,13 +19,8 @@ pub fn load_module(
|
|||
};
|
||||
|
||||
let arena = Bump::new();
|
||||
let loaded = roc_load::load_and_typecheck(
|
||||
&arena,
|
||||
src_file.to_path_buf(),
|
||||
subs_by_module,
|
||||
roc_cache_dir,
|
||||
load_config,
|
||||
);
|
||||
let loaded =
|
||||
roc_load::load_and_typecheck(&arena, src_file.to_path_buf(), roc_cache_dir, load_config);
|
||||
|
||||
match loaded {
|
||||
Ok(x) => x,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue