Skip to content

Commit

Permalink
bug: use deprecated types.NewSignature to support go1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
kulti committed Apr 3, 2022
1 parent bbb717e commit 40365c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (t thelper) buildTestCheckFuncOpts(pass *analysis.Pass, ctxType types.Type)
fnHelper: tHelper,
subRun: tRun,
hpType: tType,
subTestFuncType: types.NewSignatureType(nil, nil, nil, types.NewTuple(tVar), nil, false),
subTestFuncType: types.NewSignature(nil, types.NewTuple(tVar), nil, false),
ctxType: ctxType,
checkBegin: t.enabledChecks.Enabled(checkTBegin),
checkFirst: t.enabledChecks.Enabled(checkTFirst),
Expand Down Expand Up @@ -315,7 +315,7 @@ func (t thelper) buildBenchmarkCheckFuncOpts(pass *analysis.Pass, ctxType types.
fnHelper: bHelper,
subRun: bRun,
hpType: types.NewPointer(bObj.Type()),
subTestFuncType: types.NewSignatureType(nil, nil, nil, types.NewTuple(bVar), nil, false),
subTestFuncType: types.NewSignature(nil, types.NewTuple(bVar), nil, false),
ctxType: ctxType,
checkBegin: t.enabledChecks.Enabled(checkBBegin),
checkFirst: t.enabledChecks.Enabled(checkBFirst),
Expand Down

0 comments on commit 40365c5

Please sign in to comment.