• Alberto Donizetti's avatar
    cmd/trace: remove unused variable in tests · 041c5d83
    Alberto Donizetti authored
    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/101815Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
    041c5d83
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...