remove argument from load_and_typecheck

This commit is contained in:
Folkert 2022-12-24 14:37:48 +01:00
parent d6c32ded7d
commit 92da3973e7
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
6 changed files with 7 additions and 26 deletions

View file

@ -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,