]> Cypherpunks repositories - gostls13.git/commit
cmd/trace: remove unused variable in tests
authorAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 21 Mar 2018 10:53:51 +0000 (11:53 +0100)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 21 Mar 2018 11:10:03 +0000 (11:10 +0000)
commit041c5d83486fce4a1c8b549a3c6f9c1951b0aea8
treec123451f6f1bef06d22d36765067ef41093fd0c1
parent5f0a9ba1342674b3209c13035b5aa39a96dbd80c
cmd/trace: remove unused variable in tests

Unused variables in closures are currently not diagnosed by the
compiler (this is Issue #3059), while go/types catches them.

One unused variable in the cmd/trace tests is causing the go/types
test that typechecks the whole standard library to fail:

  FAIL: TestStdlib (8.05s)
    stdlib_test.go:223: cmd/trace/annotations_test.go:241:6: gcTime
    declared but not used
  FAIL

Remove it.

Updates #24464

Change-Id: I0f1b9db6ae1f0130616ee649bdbfdc91e38d2184
Reviewed-on: https://go-review.googlesource.com/101815
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/trace/annotations_test.go