Skip to content

Patterns of empty types #115

Closed
Closed
@nikomatsakis

Description

@nikomatsakis
Metadata
Owner(s) @Nadrieril
Team(s) compiler, lang
Goal document 2024h2/Patterns-of-empty-types

Summary

Introduce an RFC for never patterns or other solutions for patterns involving uninhabited types.

Tasks and status

  • Stabilize min_exhaustive_patterns (@Nadrieril)
  • Defer linting of newly-unreachable arms til later (@Nadrieril)
  • Write up "never patterns" RFC (@Nadrieril)
  • Submit RFC, discuss and wait for acceptance (lang Team)
  • Implement never patterns (@Nadrieril)
  • Amend exhaustive_patterns to only apply to the case of empty types behind references (@Nadrieril)
  • Decide on stabilization of exhaustive_patterns (lang Team)
  • Decide on linting of the newly-unreachable arms (lang Team)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions