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

@ -140,8 +140,8 @@ pub fn build(
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
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 Program: could not convert to layout. Err was {:?}",
err
)
});