mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +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
|
@ -138,7 +138,6 @@ pub fn load_and_monomorphize<'a>(
|
|||
pub fn load_and_typecheck<'a>(
|
||||
arena: &'a Bump,
|
||||
filename: PathBuf,
|
||||
exposed_types: ExposedByModule,
|
||||
roc_cache_dir: RocCacheDir<'_>,
|
||||
load_config: LoadConfig,
|
||||
) -> Result<LoadedModule, LoadingProblem<'a>> {
|
||||
|
@ -152,6 +151,8 @@ pub fn load_and_typecheck<'a>(
|
|||
load_config.palette,
|
||||
)?;
|
||||
|
||||
let exposed_types = ExposedByModule::default();
|
||||
|
||||
match load(arena, load_start, exposed_types, roc_cache_dir, load_config)? {
|
||||
Monomorphized(_) => unreachable!(""),
|
||||
TypeChecked(module) => Ok(module),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue