mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
fix assert
This commit is contained in:
parent
cd95920d60
commit
9f8fb61281
2 changed files with 5 additions and 2 deletions
|
@ -554,7 +554,10 @@ impl<
|
|||
let field_size = layout_interner.stack_size(*layout);
|
||||
data_offset += field_size as i32;
|
||||
}
|
||||
debug_assert!(data_offset < base_offset + size as i32);
|
||||
|
||||
// check that the record completely contains the field
|
||||
debug_assert!(data_offset <= base_offset + size as i32,);
|
||||
|
||||
let layout = field_layouts[index as usize];
|
||||
let size = layout_interner.stack_size(layout);
|
||||
self.allocation_map.insert(*sym, owned_data);
|
||||
|
|
|
@ -933,7 +933,7 @@ fn alignment_in_multi_tag_pattern_match() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn phantom_polymorphic() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue