Print on unreachable

This commit is contained in:
Ayaz Hafiz 2022-09-07 17:25:28 -05:00
parent 0b7d9e58ae
commit 274f40e4e1
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -656,7 +656,7 @@ fn addr_to_ast<'a, M: ReplAppMemory>(
Content::Structure(FlatType::RecursiveTagUnion(rec_var, tags, _)) => {
(rec_var, tags)
}
_ => unreachable!("any other content would have a different layout"),
_ => unreachable!("any other content should have a different layout, but we saw {:#?}", roc_types::subs::SubsFmtContent(content, env.subs)),
};
debug_assert_eq!(union_layouts.len(), tags.len());