mirror of https://github.com/golang/go.git
The sort.Slice method accepts an empty interface as its first argument, but a slice type is the only valid use of the method. This analyzer adds a diagnostic if the user uses the sort.Slice method with anything other than a slice type as the first argument. Change-Id: I3b54873faba2e9c2e832223a3cdab15a0b534650 Reviewed-on: https://go-review.googlesource.com/c/tools/+/191598 Run-TryBot: Johan Brandhorst <johan.brandhorst@gmail.com> Reviewed-by: Ian Cottrell <iancottrell@google.com> Reviewed-by: Michael Matloob <matloob@golang.org> |
||
|---|---|---|
| .. | ||
| analysis | ||
| ast | ||
| buildutil | ||
| callgraph | ||
| cfg | ||
| expect | ||
| gccgoexportdata | ||
| gcexportdata | ||
| internal | ||
| loader | ||
| packages | ||
| pointer | ||
| ssa | ||
| types | ||
| vcs | ||