Skip to content

Avoid sub/gsub rebuilding $0 when no substitutions made (fix gsubtst7)#276

Merged
benhoyt merged 1 commit intomasterfrom
fix-gsubtst7
Apr 6, 2026
Merged

Avoid sub/gsub rebuilding $0 when no substitutions made (fix gsubtst7)#276
benhoyt merged 1 commit intomasterfrom
fix-gsubtst7

Conversation

@benhoyt
Copy link
Copy Markdown
Owner

@benhoyt benhoyt commented Apr 6, 2026

This change also updates stringer to a later version, as the old one doesn't work with recent Go -- the error was:

$ go generate ./...
# golang.org/x/tools/internal/tokeninternal
../../../../go/pkg/mod/golang.org/x/tools@v0.10.0/internal/tokeninternal/tokeninternal.go:78:9: invalid array length -delta * delta (constant -256 of type int64)
internal/compiler/opcodes.go:3: running "go": exit status 1

@benhoyt benhoyt merged commit de6ceda into master Apr 6, 2026
9 checks passed
@benhoyt benhoyt deleted the fix-gsubtst7 branch April 6, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant