refactor(tvix/eval): let OpCoerceToString select the CoercionKind
Change-Id: I92d58ef216d7e0766af70f019b3dcd445284a95d Reviewed-on: https://cl.tvl.fyi/c/depot/+/10344 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
0c22454bb9
commit
11e35a77a6
4 changed files with 13 additions and 15 deletions
|
|
@ -201,10 +201,8 @@ pub enum OpCode {
|
|||
/// Interpolate the given number of string fragments into a single string.
|
||||
OpInterpolate(Count),
|
||||
|
||||
/// Force the Value on the stack and coerce it to a string, always using
|
||||
/// `CoercionKind::Weak { import_paths: true }`. This is the behavior
|
||||
/// necessary for path interpolation.
|
||||
OpCoerceToString,
|
||||
/// Force the Value on the stack and coerce it to a string
|
||||
OpCoerceToString(crate::CoercionKind),
|
||||
|
||||
// Paths
|
||||
/// Attempt to resolve the Value on the stack using the configured [`NixSearchPath`][]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue