tools: switch to standard go/types at tip
A few files have been forked and tagged "go1.5,!go1.6" to work around
minor API changes between the two types packages:
- constant.Value.String() in oracle/describe.go and its tests;
- constant.ToInt must now be called before constant.Int64Val.
- types.Config{Importer: importer.Default()} in a number of places
- go/types/typeutil/import_test.go uses lowercase names to avoid 'import "C"'.
Files in go/types/typesutil, missing from my previous CL, have been
tagged !go1.5; these files will be deleted in February.
All affected packages were tested using 1.4.1, 1.5, and ~1.6 (tip).
Change-Id: Iec7fd370e1434508149b378438fb37f65b8d2ba8
Reviewed-on: https://go-review.googlesource.com/18207
Reviewed-by: Robert Griesemer <gri@golang.org>
diff --git a/refactor/satisfy/find.go b/refactor/satisfy/find.go
index 9fd8455..a346c1a 100644
--- a/refactor/satisfy/find.go
+++ b/refactor/satisfy/find.go
@@ -50,9 +50,9 @@
"fmt"
"go/ast"
"go/token"
+ "go/types"
"golang.org/x/tools/go/ast/astutil"
- "golang.org/x/tools/go/types"
"golang.org/x/tools/go/types/typeutil"
)