Fix missing function in --release builds

This commit is contained in:
Richard Feldman 2020-07-07 22:55:07 -04:00
parent 6eef203e99
commit 2ea527a293

View file

@ -586,6 +586,12 @@ fn ext_var_is_empty_tag_union(subs: &Subs, ext_var: Variable) -> bool {
}
}
#[cfg(not(debug_assertions))]
fn ext_var_is_empty_tag_union(_: &Subs, _: Variable) -> bool {
// This should only ever be used in debug_assert! macros
unreachable!();
}
#[cfg(debug_assertions)]
fn ext_var_is_empty_record(subs: &Subs, ext_var: Variable) -> bool {
// the ext_var is empty
@ -596,6 +602,12 @@ fn ext_var_is_empty_record(subs: &Subs, ext_var: Variable) -> bool {
}
}
#[cfg(not(debug_assertions))]
fn ext_var_is_empty_record(_: &Subs, _: Variable) -> bool {
// This should only ever be used in debug_assert! macros
unreachable!();
}
fn layout_from_num_content<'a>(content: Content) -> Result<Layout<'a>, LayoutProblem> {
use roc_types::subs::Content::*;
use roc_types::subs::FlatType::*;