Golang go/types: specious "invalid recursive type" error?

Given:package ptype s struct { i i }type i interface { s | any }go/types currently reports:/tmp/y.go:3:6: invalid recurs...

Golang cmd/compile: bug in cmd/compile/internal/noder.(*reader).typeParamNames

Issue created by stacks.This stack TGzIXQ was reported by telemetry:compile/bugcmd/compile/internal/base.FatalfAt:+3cmd/...

Golang cmd/compile: type parameter involving constraint with channels seems like it should be inferrable

Go versiongo1.23 and go tipOutput of go env in your module/workspace:n/a, using go.dev/playWhat did you do?https://go.de...

Golang spec: for-range iterator yield function requires bool result - consider generalizing to any boolean type

Per the spec, a "for-range" statement using an iterator requires the iterator's yield function to return bool not an arb...

Golang math/big: update to math/rand/v2

Go versiongo version 1.23Output of go env in your module/workspace:N/AWhat did you do?I wanted to update robpike.io/ivy ...

Golang cmd/compile/internal/types2: enable unsorted processing of package objects

Reminder issue to remove the false in the condition at resolver.go:680 (look for issue50259.go in the source).Comment Fr...

Golang go/types: Implements is an allocation hotspot

While profiling the rapid type analysis (golang.org/x/tools/go/callgraph/rta) I noticed that it spends a majority of its...

Golang cmd/compile: unhelpful error message with recursive constraint

What version of Go are you using (go version)?$ go versiongo version devel go1.21-af8f94e3c5 Tue Jul 11 21:30:51 2023 +0...

Golang cmd/api: API checker doesn't seem to handle Alias uses correctly

Background: API check failure in https://go.dev/cl/559435.Comment From: randall77I think this might not be a bug in the ...

Golang cmd/compile: exponential behavior for deeply nested structs

Go versiontipOutput of go env in your module/workspace:GO111MODULE=""GOARCH="arm64"GOBIN="&quot...

Golang cmd/compile: "panic: unification reached recursion depth limit" with recursive type constraint

Go versiongo version go1.22.3 darwin/arm64Output of go env in your module/workspace:GO111MODULE=''GOARCH='arm64'GOBIN=''...

Golang cmd/compile: declaration order of types affects cycle detection

Go versiongo version go1.22.3 darwin/amd64Output of go env in your module/workspace:GO111MODULE=''GOARCH='amd64'GOBIN=''...

Golang reflect: verify/ensure that reflect supports the same string/[]byte/[]rune conversions as the spec/implementation

Follow-up on #23814.See https://go-review.googlesource.com/c/go/+/412095/4/test/fixedbugs/issue23814.go for examples.Com...

Golang go/types, types2: add mechanism to report "last good" source file position in case of a panic

We should track the source positions for the code we're in the process of type-checking so that we can report a position...

Golang go/types, types2: consolidate error message formats

Error messages don't have a particular "style guide" at the moment:there are simple errors of the form: func main must h...

Golang go/types,cmd/compile/internal/types2: shared type expressions are evaluated once per variable

If a VarDecl has an explicit type expression, it will get evaluated once for each declared variable. So if you have a Va...

Golang x/tools/gopls/internal/util/safetoken: TestGoplsSourceDoesNotCallTokenFileMethods failures

#!watchflakesdefault <- pkg == "golang.org/x/tools/gopls/internal/util/safetoken" && test == "...

Golang runtime/pprof: crash "cannot read stack of running goroutine" in goroutine profile

This crash was seen internally at Google. The root cause is a bug in https://go.dev/cl/650697 and related to handling of...

Golang x/tools/go/ssa: defer into stack frame

Proposal DetailsThis proposal is to extend x/tools/go/ssa to support for defers when running with GOEXPERIMENT=rangefunc...

Golang os: racy use of pidfd

https://go.dev/cl/570036 started using a pidfd for Process operations in order to avoid races with wait/signal targeting...
上一页 下一页
.