Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In some rare cases a closeContext will not have a parent. This is currently only the case if Sharing is false. It is safe to return the input pointers in this case. In the worst case, it will just limits duplicate elimination, which will be corrected when a node is finalized. Note that this CL has no test. It will be hard, and perhaps futile, to devise a test that exposes this bug within the current txtar file setup, because even small changes in the evaluator may cause this issue to no longer be exposed. The only way to really expose it is by means of a unit test. Added a TODO in the function. Issue #2884 Issue #2851 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I20bdd0f6488624d1ad384338a9becbf43ab18515 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193672 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information