about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/messages.ftl
AgeCommit message (Collapse)AuthorLines
2025-05-06error early when mixing deref patterns with normal constructorsdianne-0/+4
Without adding proper support for mixed exhaustiveness, mixing deref patterns with normal constructors would either violate `ConstructorSet::split`'s invariant 4 or 7. We'd either be ignoring rows with normal constructors or we'd have problems in unspecialization from non-disjoint constructors. Checking mixed exhaustivenss similarly to how unions are currently checked should work, but the diagnostics for unions are confusing. Since mixing deref patterns with normal constructors is pretty niche (currently it only makes sense for `Cow`), emitting an error lets us avoid committing to supporting mixed exhaustiveness without a good answer for the diagnostics.
2024-03-09Lint small gaps between rangesNadrieril-0/+8
2023-12-11Extract exhaustiveness into its own crateNadrieril-0/+19