Skip to content

Commit db7183c

Browse files
go/build: remove unused fileInfo.embedErr field
Change-Id: If86a0402dae32c57d07545ee6d818010e0e4b5ee Reviewed-on: https://go-review.googlesource.com/c/go/+/399255 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
1 parent 0f0c892 commit db7183c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/go/build/build.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,6 @@ type fileInfo struct {
13801380
parseErr error
13811381
imports []fileImport
13821382
embeds []fileEmbed
1383-
embedErr error
13841383
}
13851384

13861385
type fileImport struct {

src/go/build/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func readComments(f io.Reader) ([]byte, error) {
390390
// readGoInfo expects a Go file as input and reads the file up to and including the import section.
391391
// It records what it learned in *info.
392392
// If info.fset is non-nil, readGoInfo parses the file and sets info.parsed, info.parseErr,
393-
// info.imports, info.embeds, and info.embedErr.
393+
// info.imports and info.embeds.
394394
//
395395
// It only returns an error if there are problems reading the file,
396396
// not for syntax errors in the file itself.

0 commit comments

Comments
 (0)