Skip to content

cmd/compile/internal/types2: provide a mechanism to install compiler limits #78475

Description

@griesemer

We have various compiler limits, such as for map element sizes, etc. (see #78355, and corresponding fix CL 760600) that are not enforced by types2 but by the compiler-original type checker (types) and which in turn requires that we exclude certain tests from the types2 (and go/types) test suite.

We should provide a mechanism to install compiler-specific limitations with types2 (and go/types) such that when present, these limits can be checked early where possible.

This will allow us to include the respective tests for types2 and go/types (these tests can run much faster because they don't invoke the compiler), and also avoid the need to add more code to the compiler-original type checker which we would like to trim (and eventually remove).

Reminder issue. Should be developed into a concrete proposal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Fields

    No fields configured for Feature.

    Projects

    Status
    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions