mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Print on unreachable
This commit is contained in:
parent
0b7d9e58ae
commit
274f40e4e1
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue