Skip to content

Commit b7d9b69

Browse files
committed
internal/core/adt: mark nodeContext.clone as v2
Just to be clear this cannot be called from v3. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I7200051a42f7d492de1a687a9abf6b9406fc1e74 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1218176 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
1 parent 99494a6 commit b7d9b69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/core/adt/eval.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,8 @@ func (n *nodeContext) addNotify(v *Vertex) {
12901290
}
12911291

12921292
func (n *nodeContext) clone() *nodeContext {
1293+
unreachableForDev(n.ctx)
1294+
12931295
d := n.ctx.newNodeContext(n.node)
12941296

12951297
d.refCount++

0 commit comments

Comments
 (0)