pub fn group_missing_constructors(
all_ctors: Vec<Constructor>,
other_ctors: impl Iterator<Item = Constructor> + Clone,
) -> Vec<Constructor>
Expand description
Like rustc, we need a way to deal with arrays of mostly wildcard patterns. We
steal rustc’s solution of grouping all patterns not explicitly stated in one column
of a pattern into a group of missing
patterns. That way those can be checked groups.
This function groups all the missing patterns when given a list of constructors