Fix ICE regarding tuple struct matches using (..)
Fixes half of #14308.
This commit is contained in:
parent
ebe1d8ec2a
commit
d5b5aa4d4a
@ -810,6 +810,9 @@ fn enter_tuple_struct<'a, 'b>(
|
||||
ast::PatEnum(_, Some(ref elts)) => {
|
||||
Some(elts.iter().map(|x| (*x)).collect())
|
||||
}
|
||||
ast::PatEnum(_, None) => {
|
||||
Some(Vec::from_elem(n_elts, dummy))
|
||||
}
|
||||
_ => {
|
||||
assert_is_binding_or_wild(bcx, p);
|
||||
Some(Vec::from_elem(n_elts, dummy))
|
||||
|
Loading…
x
Reference in New Issue
Block a user