Skip to content

Conversation

@charliermarsh
Copy link
Member

Summary

This was just a bug in the parser ranges, probably since it was initially implemented. Given match n % 3, n % 5: ..., the "subject" (i.e., the tuple of two binary operators) was using the entire range of the match statement.

Closes #8091.

Test Plan

cargo test

@charliermarsh charliermarsh added bug Something isn't working formatter Related to the formatter labels Oct 21, 2023
@github-actions
Copy link
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

@charliermarsh charliermarsh merged commit d6a4283 into main Oct 22, 2023
@charliermarsh charliermarsh deleted the charlie/match branch October 22, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working formatter Related to the formatter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect formatting of comments in match statement for tuple without parentheses

3 participants