cue/build: standardise on using the Context's loader
In cue/build, Context.NewInstance will accept a LoadFunc as an argument.
If it's not supplied, then the LoadFunc in the Context itself is used.
In several places we were supplying both, leading to puzzling code. It
turns out that none of our uses required the explicit argument, and
instead some simplification is possible by relying on the LoadFunc from
Context being used.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: I0724849d7e6b870b7b7f5df4ceacb5fbdb0e3783
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1215457
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>