]> Cypherpunks repositories - gostls13.git/commit
slices,sort: explicitly discard results in benchmarks
authorAlan Donovan <adonovan@google.com>
Mon, 2 Jun 2025 15:27:08 +0000 (11:27 -0400)
committerAlan Donovan <adonovan@google.com>
Mon, 2 Jun 2025 16:09:25 +0000 (09:09 -0700)
commite9d3b030ed6fe8380d9b0411ef06eff001769641
tree91835f600328d4b44097462e82fbc6a208b78aad
parenta8e99ab19cbf8568cb452b899d0ed3f0d65848c5
slices,sort: explicitly discard results in benchmarks

The unusedresult analyzer will report failure to use the results
of these pure functions.

Updates #73950

Change-Id: I783cb92ad913105afd46c782bedf6234410c645d
Reviewed-on: https://go-review.googlesource.com/c/go/+/677995
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Commit-Queue: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/slices/sort_benchmark_test.go
src/slices/sort_test.go
src/sort/sort_slices_benchmark_test.go