all: remove last unnecessary uses of cue.Runtime
None of these affect exported API, so they are easy to replace
without breaking any users or changing any behavior.
Note that cue/path_test.go needs to move to an external test package
as otherwise importing cuecontext results in an import cycle.
This resolves 18 staticcheck deprecation warnings.
For #2480.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I3757aecb2918482bfa90dbd851faba46ec1d936e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199863
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>