We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
go version go1.7.1 linux/amd64
go env
GOARCH="amd64" GOOS="linux"
Complete instruction on reproducing this error:
$ cat ~/tmp/haha.go package haha import "hihi" func init() { HahaImpl := haha } // Haha hihi hehe! // //go:noescape func haha() $ # Notice the misplaced compiler directive in the output below. $ go tool cover -mode atomic -var Haha5678901234567890123 ~/tmp/haha.go package haha import _cover_atomic_ "sync/atomic" import "hihi" func init() { _cover_atomic_.AddUint32(&Haha5678901234567890123. //go:noescape Count[0], 1) HahaImpl := haha } func haha() var _ = _cover_atomic_.AddUint32 var Haha5678901234567890123 = struct { Count [1]uint32 Pos [3 * 1]uint32 NumStmt [1]uint16 } { Pos: [3 * 1]uint32{ 5, 7, 0x2000d, // [0] }, NumStmt: [1]uint16{ 1, // 0 }, }
The compiler directive, //go:noescape, should not have been misplaced. It should have stayed with function declaration haha().
//go:noescape
haha()
The compiler directive was misplaced.
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/30161 mentions this issue.
Sorry, something went wrong.
/cc @robpike
f0636bf
No branches or pull requests
What version of Go are you using (
go version
)?go version go1.7.1 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOOS="linux"
What did you do?
Complete instruction on reproducing this error:
What did you expect to see?
The compiler directive,
//go:noescape
, should not have been misplaced. It should have stayed with function declarationhaha()
.What did you see instead?
The compiler directive was misplaced.
The text was updated successfully, but these errors were encountered: