mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
add load_internal
This commit is contained in:
parent
750fbf2dcf
commit
311e464b70
55 changed files with 100 additions and 73 deletions
|
@ -94,7 +94,7 @@ fn compiles_to_ir(test_name: &str, src: &str) {
|
|||
module_src = &temp;
|
||||
}
|
||||
|
||||
let loaded = roc_load::file::load_and_monomorphize_from_str(
|
||||
let loaded = roc_load::load_and_monomorphize_from_str(
|
||||
arena,
|
||||
filename,
|
||||
module_src,
|
||||
|
@ -105,14 +105,14 @@ fn compiles_to_ir(test_name: &str, src: &str) {
|
|||
|
||||
let mut loaded = match loaded {
|
||||
Ok(x) => x,
|
||||
Err(roc_load::file::LoadingProblem::FormattedReport(report)) => {
|
||||
Err(roc_load::LoadingProblem::FormattedReport(report)) => {
|
||||
println!("{}", report);
|
||||
panic!();
|
||||
}
|
||||
Err(e) => panic!("{:?}", e),
|
||||
};
|
||||
|
||||
use roc_load::file::MonomorphizedModule;
|
||||
use roc_load::MonomorphizedModule;
|
||||
let MonomorphizedModule {
|
||||
module_id: home,
|
||||
procedures,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue