feat: filter already present enum variants in match arms

This commit is contained in:
feniljain 2022-12-17 16:58:42 +05:30
parent 68fd1ce313
commit 794988c53b
8 changed files with 114 additions and 16 deletions

View file

@ -220,6 +220,8 @@ pub(super) struct PatternContext {
/// The record pattern this name or ref is a field of
pub(super) record_pat: Option<ast::RecordPat>,
pub(super) impl_: Option<ast::Impl>,
/// List of missing variants in a match expr
pub(super) missing_variants: Vec<hir::Variant>,
}
#[derive(Debug, Clone, PartialEq, Eq)]