Don't print subs on error

It's way too verbose and unhelpful!
This commit is contained in:
Richard Feldman 2020-07-06 21:22:51 -04:00
parent c28dd8fd19
commit b5ad6e17b4
4 changed files with 8 additions and 8 deletions

View file

@ -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
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
"Code gen error in test: could not convert to layout. Err was {:?}",
err
)
});
let execution_engine = module