all: make use of the new slices.Clone and cmp.Or Go 1.22 APIs
Minor but nice code simplifications.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I5b3c23af78d2ca2f1eb2a8cdf82d63af32a1158a
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198626
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Matthew Sackman <matthew@cue.works>