Skip to content

Commit 088c566

Browse files
nickysnalehander92
authored andcommitted
feat: support TraceLowLevelEvent::DropVariable in write_trace()
1 parent 26b5e5e commit 088c566

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runtime_tracing/src/capnptrace.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,15 @@ pub fn write_trace(q: &[crate::TraceLowLevelEvent], output: &mut impl std::io::W
419419
q.set_i(vars[i].0.try_into().unwrap());
420420
}
421421
}
422+
TraceLowLevelEvent::DropVariable(varid) => {
423+
let mut ret = event.init_drop_variable();
424+
ret.set_i(varid.0.try_into().unwrap());
425+
}
422426
TraceLowLevelEvent::CompoundValue(cvr) => todo!(),
423427
TraceLowLevelEvent::CellValue(cvr) => todo!(),
424428
TraceLowLevelEvent::AssignCompoundItem(aci) => todo!(),
425429
TraceLowLevelEvent::AssignCell(acr) => todo!(),
426430
TraceLowLevelEvent::VariableCell(vcr) => todo!(),
427-
TraceLowLevelEvent::DropVariable(varid) => todo!(),
428431
}
429432
}
430433

0 commit comments

Comments
 (0)