Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type resolution for grouped patterns #1771

Merged
merged 2 commits into from
Jan 26, 2023
Merged

Conversation

powerboat9
Copy link
Contributor

Signed-off-by: Owen Avery powerboat9.gamer@gmail.com

Adds type resolution for GroupedPattern.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

LGTM

I am starting to think once we get your stuff merged in we should look to see if we can desugar the HIR here, so instead of an HIR::GroupedPattern we literly lower the inner pattern and return that.. as this sort of feels very AST'y. But lets not do that yet.

@philberty
Copy link
Member

bors r+

@philberty philberty self-assigned this Jan 26, 2023
@philberty philberty added this to the Final upstream patches milestone Jan 26, 2023
@bors
Copy link
Contributor

bors bot commented Jan 26, 2023

@bors bors bot merged commit fe828b4 into Rust-GCC:master Jan 26, 2023
bors bot added a commit that referenced this pull request Feb 2, 2023
1783: Remove HIR::GroupedPattern r=philberty a=powerboat9

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>

Removes HIR::GroupedPattern and lowers AST::GroupedPattern to its inner pattern directly. Addresses #1771 (review)

Co-authored-by: Owen Avery <powerboat9.gamer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants