Skip to content

Commit 4097263

Browse files
committed
chore: add debug assert
1 parent e8bfa23 commit 4097263

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libs/@local/hashql/mir/src/reify/rvalue.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ impl<'mir, 'heap> Reifier<'_, 'mir, '_, '_, 'heap> {
5353
operands.push(self.operand(field.value));
5454
}
5555

56+
debug_assert!(field_names.is_sorted());
57+
5658
RValue::Aggregate(Aggregate {
5759
kind: AggregateKind::Struct {
5860
fields: self.context.mir.interner.symbols.intern_slice(&field_names),

0 commit comments

Comments
 (0)