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:
parent
3e188d4f8e
commit
f69e83ae7b
1 changed files with 8 additions and 1 deletions
|
@ -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(()),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue