From bba22633a71f82f653dc63fb71e9c8d79ce55104 Mon Sep 17 00:00:00 2001 From: Marcel van Lohuizen Date: Tue, 3 Oct 2023 10:23:52 +0200 Subject: [PATCH] internal/core/adt: use state directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it compativle with v0.7. Signed-off-by: Marcel van Lohuizen Change-Id: I86b2b420bb7ee9af7b46cad10c39e83efac9baad Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172011 Reviewed-by: Daniel Martí TryBot-Result: CUEcueckoo --- internal/core/adt/expr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/adt/expr.go b/internal/core/adt/expr.go index 24d6bfbfbcb..c3dc60e9054 100644 --- a/internal/core/adt/expr.go +++ b/internal/core/adt/expr.go @@ -1398,7 +1398,7 @@ func isFinalError(n *Vertex) bool { // change after the fact. // expectError indicates whether the value should evaluate to an error or not. func (c *OpContext) verifyNonMonotonicResult(env *Environment, x Expr, expectError bool) { - if n := env.Vertex.getNodeContext(c, 0); n != nil { + if n := env.Vertex.state; n != nil { n.postChecks = append(n.postChecks, envCheck{ env: env, expr: x,