mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Don't print subs on error
It's way too verbose and unhelpful!
This commit is contained in:
parent
c28dd8fd19
commit
b5ad6e17b4
4 changed files with 8 additions and 8 deletions
|
@ -364,8 +364,8 @@ fn gen(
|
||||||
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
|
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
|
||||||
let layout = Layout::new(&arena, content, &subs, ptr_bytes).unwrap_or_else(|err| {
|
let layout = Layout::new(&arena, content, &subs, ptr_bytes).unwrap_or_else(|err| {
|
||||||
panic!(
|
panic!(
|
||||||
"Code gen error in test: could not convert to layout. Err was {:?} and Subs were {:?}",
|
"Code gen error in CLI: could not convert to layout. Err was {:?}",
|
||||||
err, subs
|
err
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -221,8 +221,8 @@ pub fn gen(src: &str, target: Triple, opt_level: OptLevel) -> Result<(String, St
|
||||||
// Compute main_fn_type before moving subs to Env
|
// Compute main_fn_type before moving subs to Env
|
||||||
let layout = Layout::new(&arena, content, &subs, ptr_bytes).unwrap_or_else(|err| {
|
let layout = Layout::new(&arena, content, &subs, ptr_bytes).unwrap_or_else(|err| {
|
||||||
panic!(
|
panic!(
|
||||||
"Code gen error in test: could not convert to layout. Err was {:?} and Subs were {:?}",
|
"Code gen error in test: could not convert to layout. Err was {:?}",
|
||||||
err, subs
|
err
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let execution_engine = module
|
let execution_engine = module
|
||||||
|
|
|
@ -140,8 +140,8 @@ pub fn build(
|
||||||
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
|
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
|
||||||
let layout = Layout::new(&arena, content, &subs, ptr_bytes).unwrap_or_else(|err| {
|
let layout = Layout::new(&arena, content, &subs, ptr_bytes).unwrap_or_else(|err| {
|
||||||
panic!(
|
panic!(
|
||||||
"Code gen error in test: could not convert to layout. Err was {:?} and Subs were {:?}",
|
"Code gen error in Program: could not convert to layout. Err was {:?}",
|
||||||
err, subs
|
err
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ macro_rules! assert_llvm_evals_to {
|
||||||
|
|
||||||
// Compute main_fn_type before moving subs to Env
|
// Compute main_fn_type before moving subs to Env
|
||||||
let layout = Layout::new(&arena, content, &subs, ptr_bytes)
|
let layout = Layout::new(&arena, content, &subs, ptr_bytes)
|
||||||
.unwrap_or_else(|err| panic!("Code gen error in test: could not convert to layout. Err was {:?} and Subs were {:?}", err, subs));
|
.unwrap_or_else(|err| panic!("Code gen error in test: could not convert to layout. Err was {:?}", err));
|
||||||
let execution_engine =
|
let execution_engine =
|
||||||
module
|
module
|
||||||
.create_jit_execution_engine(OptimizationLevel::None)
|
.create_jit_execution_engine(OptimizationLevel::None)
|
||||||
|
@ -211,7 +211,7 @@ macro_rules! assert_opt_evals_to {
|
||||||
|
|
||||||
// Compute main_fn_type before moving subs to Env
|
// Compute main_fn_type before moving subs to Env
|
||||||
let layout = Layout::new(&arena, content, &subs, ptr_bytes)
|
let layout = Layout::new(&arena, content, &subs, ptr_bytes)
|
||||||
.unwrap_or_else(|err| panic!("Code gen error in test: could not convert to layout. Err was {:?} and Subs were {:?}", err, subs));
|
.unwrap_or_else(|err| panic!("Code gen error in test: could not convert to layout. Err was {:?}", err));
|
||||||
|
|
||||||
let execution_engine =
|
let execution_engine =
|
||||||
module
|
module
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue