all: update golang.org/x/tools dependency to support Go v1.22.0 (#401)
This commit is contained in:
@@ -2,6 +2,4 @@ github.com/google/subcommands
|
||||
github.com/google/wire
|
||||
github.com/pmezard/go-difflib
|
||||
golang.org/x/mod
|
||||
golang.org/x/sys
|
||||
golang.org/x/tools
|
||||
golang.org/x/xerrors
|
||||
|
||||
@@ -1173,9 +1173,9 @@ func (pt ProvidedType) IsNil() bool {
|
||||
//
|
||||
// - For a function provider, this is the first return value type.
|
||||
// - For a struct provider, this is either the struct type or the pointer type
|
||||
// whose element type is the struct type.
|
||||
// - For a value, this is the type of the expression.
|
||||
// - For an argument, this is the type of the argument.
|
||||
// whose element type is the struct type.
|
||||
// - For a value, this is the type of the expression.
|
||||
// - For an argument, this is the type of the argument.
|
||||
func (pt ProvidedType) Type() types.Type {
|
||||
return pt.t
|
||||
}
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
example.com/foo/wire.go:x:y: not enough arguments in call to wire.Bind
|
||||
example.com/foo/wire.go:x:y: not enough arguments in call to wire.Bind
|
||||
have (*Fooer)
|
||||
want (interface{}, interface{})
|
||||
@@ -1 +1,3 @@
|
||||
example.com/foo/wire.go:x:y: not enough arguments in call to wire.InterfaceValue
|
||||
example.com/foo/wire.go:x:y: not enough arguments in call to wire.InterfaceValue
|
||||
have (string)
|
||||
want (interface{}, interface{})
|
||||
@@ -463,7 +463,6 @@ type testCase struct {
|
||||
// program_out.txt
|
||||
// expected output from the final compiled program,
|
||||
// missing if wire_errs.txt is present
|
||||
//
|
||||
func loadTestCase(root string, wireGoSrc []byte) (*testCase, error) {
|
||||
name := filepath.Base(root)
|
||||
pkg, err := ioutil.ReadFile(filepath.Join(root, "pkg"))
|
||||
|
||||
Reference in New Issue
Block a user