cmd/vet, x/tools/internal/versions: fix interpretation of empty language version #66007
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
x/tools/internal/versions
currently interprets invalid/unknown language versions (""
) as some unknown earliest version.go/types
interprets an unknown language version as "an empty string disables Go language version checks" and treats this as if all language features are allowed. This is closer to treating this as if it is some unknown future version.x/tools
should be consistent withgo/types
.Users of internal/versions
x/tools/go/analysis/passes/loopclosure
andx/tools/go/ssa
need to update their interpretation.Related #65612.
The text was updated successfully, but these errors were encountered: