diff options
Diffstat (limited to 'cmd/vet/types.go')
-rw-r--r-- | cmd/vet/types.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/vet/types.go b/cmd/vet/types.go index 0a2a248..8a0182b 100644 --- a/cmd/vet/types.go +++ b/cmd/vet/types.go @@ -37,7 +37,9 @@ func init() { func importType(path, name string) types.Type { pkg, err := types.DefaultImport(imports, path) if err != nil { - warnf("import failed: %v", err) + // This can happen if fmt hasn't been compiled yet. + // Since nothing uses formatterType anyway, don't complain. + //warnf("import failed: %v", err) return nil } if obj, ok := pkg.Scope().Lookup(name).(*types.TypeName); ok { |