Skip to content

PluralPattern / PatternPlurals::MultipleVariants is uninhabited #7118

@Manishearth

Description

@Manishearth

6bfa473 removed week-of-year fields, and #5643 is filed to re-add them. With that change, Week became an uninhabited type.

Unfortunately, Week is used in PluralPattern::pivot_field, which makes the whole type uninhabited, as well as PatternPlurals::MultipleVariants.

This throws up unreachable_code warnings.

We should fix this by either:

  • Fixing Add week-of-year to semantic skeletons #5643 (needs CLDR changes)
  • Removing MultipleVariants and PluralPattern from the data model
  • Turning pivot_field into Option<Week>
  • Changing the type of pivot_field to some other enum

Some of these solutions probably do not actually make sense.

cc @sffc

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-datetimeComponent: datetime, calendars, time zones

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions