refactor(tvix/eval): cover all Value variants in force_for_output

Avoids accidentally dropping one on the floor if we add more, pointed
out by sterni in cl/6372

Change-Id: Ib7bb0ce9c8331c8337003d20c4d5240dfae1c32a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6570
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-09-13 16:19:17 +03:00 committed by tazjin
parent 3e188d4f8e
commit f69e83ae7b

View file

@ -715,7 +715,14 @@ impl<'o> VM<'o> {
panic!("tvix bug: internal value left on stack: {:?}", value)
}
_ => Ok(()),
Value::Null
| Value::Bool(_)
| Value::Integer(_)
| Value::Float(_)
| Value::String(_)
| Value::Path(_)
| Value::Closure(_)
| Value::Builtin(_) => Ok(()),
}
}