Skip to content

Commit 74d1a9a

Browse files
committed
more documentation of unintuitive packed struct solution
1 parent c47c325 commit 74d1a9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/step.rs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
2828

2929
/// Returns true as long as there are more things to do.
3030
pub fn step(&mut self) -> EvalResult<'tcx, bool> {
31+
// see docs on the `Memory::packed` field for why we do this
3132
self.memory.clear_packed();
3233
self.inc_step_counter_and_check_limit(1)?;
3334
if self.stack.is_empty() {

0 commit comments

Comments
 (0)