diff options
Diffstat (limited to 'tvix/eval/src/vm')
-rw-r--r-- | tvix/eval/src/vm/generators.rs | 4 | ||||
-rw-r--r-- | tvix/eval/src/vm/mod.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tvix/eval/src/vm/generators.rs b/tvix/eval/src/vm/generators.rs index 7b92c1f0af35..6563a82790a6 100644 --- a/tvix/eval/src/vm/generators.rs +++ b/tvix/eval/src/vm/generators.rs @@ -344,8 +344,8 @@ impl<'o> VM<'o> { VMRequest::StringCoerce(val, kind) => { self.reenqueue_generator(name, span.clone(), generator); - self.enqueue_generator("coerce_to_string", span, |co| { - val.coerce_to_string(co, kind) + self.enqueue_generator("coerce_to_string", span.clone(), |co| { + val.coerce_to_string(co, kind, span) }); return Ok(false); } diff --git a/tvix/eval/src/vm/mod.rs b/tvix/eval/src/vm/mod.rs index 5ab095b22056..6128e3a601a0 100644 --- a/tvix/eval/src/vm/mod.rs +++ b/tvix/eval/src/vm/mod.rs @@ -744,8 +744,8 @@ impl<'o> VM<'o> { let gen_span = frame.current_light_span(); self.push_call_frame(span, frame); - self.enqueue_generator("coerce_to_string", gen_span, |co| { - value.coerce_to_string(co, CoercionKind::Weak) + self.enqueue_generator("coerce_to_string", gen_span.clone(), |co| { + value.coerce_to_string(co, CoercionKind::Weak, gen_span) }); return Ok(false); |