Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Nov 24, 2020

We basically just split the subpatterns into two halves when the ellipsis is present and then offset the latter half to account for the ignored bindings.

Fixes #6616

@Veykril Veykril force-pushed the tuple-ellipsis-infer branch from 2e2fa02 to 35dd62e Compare November 24, 2020 12:56
Copy link
Member

@flodiebold flodiebold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one small comment!

bors d+

@bors
Copy link
Contributor

bors bot commented Nov 24, 2020

✌️ Veykril can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@Veykril Veykril force-pushed the tuple-ellipsis-infer branch from c4b739c to a5efefd Compare November 24, 2020 15:12
@Veykril
Copy link
Member Author

Veykril commented Nov 24, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 24, 2020

@bors bors bot merged commit 67d4585 into rust-lang:master Nov 24, 2020
@Veykril Veykril deleted the tuple-ellipsis-infer branch November 27, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rest pattern is ignored

2 participants