all: resolve a few more staticcheck warnings
Mainly deprecations, but also a few others sprinkled in.
Reduces the number of warnings by 7.
internal/value.ConvertToRuntime is only needed once after this refactor,
and since we're moving away from it, the internal API can go entirely.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I775780e27810a644d4679eacfc93eb30ba5dea1d
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199870
Reviewed-by: Matthew Sackman <matthew@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>