all: remove support for infix div, mod, quo, and rem
These have been rewritten to functions via `cue fix` since a change
in late 2020: https://cue-review.googlesource.com/c/cue/+/7824
Similarly, the infix syntax has not been documented anywhere,
not even the spec, for half a decade now.
This transition was meant to later deprecate and remove support
for the old infix form of these operations. We didn't do that yet,
so do it now. Given the length of time it has been, we can go ahead
and remove all support at this point.
If there is any user who comes back to CUE after this many years,
they can resolve this hiccup by installing CUE v0.16.0 and using
that version's `cue fix` command once.
Most of the existing tests are rewritten to the new form,
with the exception of the tools/fix test, as that feature is now gone,
and the cue/parser test, as it specifically tested the infix parsing
with identifier operators. We no longer have any of those.
Fixes #2932.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ia33d621eccb5b05c204f9baee27f691b68cefd82
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1234429
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Matthew Sackman <matthew@cue.works>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>