Use Tag variants in uniqueness/mod.rs

This commit is contained in:
Richard Feldman 2019-12-03 01:49:42 -05:00
parent 8a1e202849
commit b16059ff91

View file

@ -88,11 +88,11 @@ fn canonicalize_pattern(
)); ));
} }
Variant(_, _) | AppliedVariant(_, _, _) | EmptyRecordLiteral(_) => { Tag(_, _) | AppliedTag(_, _, _) | EmptyRecordLiteral(_) => {
panic!("TODO add_constraints for {:?}", pattern); panic!("TODO add_constraints for {:?}", pattern);
} }
Underscore(_) | Shadowed(_) | UnrecognizedVariant(_) | UnsupportedPattern(_) => { Underscore(_) | Shadowed(_) | UnsupportedPattern(_) => {
// no constraints // no constraints
} }
} }