Skip to content

Remove ty_nil and replace with zero-length tuple #18614

Closed
@nikomatsakis

Description

@nikomatsakis

Distinguishing zero-arity tuples as nil causes annoying discontinuities in the compiler. We should remove ty_nil and just use ty_tup with a zero-length list of types. I tried to do this, though, and encountered errors in the exhaustiveness checker that I did not understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions