mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Fix rebased compile error
This commit is contained in:
parent
dd2b3097e1
commit
2151e715dd
1 changed files with 3 additions and 3 deletions
|
@ -6976,9 +6976,9 @@ fn build_int_unary_op<'a, 'ctx, 'env>(
|
|||
// return_layout : Result N [ OutOfBounds ]* ~ { result: N, out_of_bounds: bool }
|
||||
|
||||
let target_int_width = match return_layout {
|
||||
Layout::Struct(layouts) if layouts.len() == 2 => {
|
||||
debug_assert!(matches!(layouts[1], Layout::Builtin(Builtin::Bool)));
|
||||
match layouts[0] {
|
||||
Layout::Struct { field_layouts, .. } if field_layouts.len() == 2 => {
|
||||
debug_assert!(matches!(field_layouts[1], Layout::Builtin(Builtin::Bool)));
|
||||
match field_layouts[0] {
|
||||
Layout::Builtin(Builtin::Int(iw)) => iw,
|
||||
layout => internal_error!(
|
||||
"There can only be an int layout here, found {:?}!",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue