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

A good chunk of stable patterns for marker #68

Merged
merged 8 commits into from Jan 6, 2023

Conversation

xFrednet
Copy link
Member

@xFrednet xFrednet commented Dec 7, 2022

It's interesting to see how important patterns are to Rust. We use them all the time, often without noticing them. This adds the first few patterns, that can be expressed without expressions. Most of these can't be tested, but I'll try to add the rustc backend for them next.

CC: #50


As per usual, I'll merge this, if there has been no outside interaction, by the time I have the next PR ready. And reviews and feedback is very welcome!

@xFrednet xFrednet added A-api Area: Stable API S-waiting-on-review Status: Awaiting review labels Dec 7, 2022
@xFrednet xFrednet added this to the v0.0.1 milestone Dec 7, 2022
marker_api/src/ast/pat/ident_pat.rs Outdated Show resolved Hide resolved
marker_api/src/ast/pat/struct_pat.rs Outdated Show resolved Hide resolved
@xFrednet
Copy link
Member Author

xFrednet commented Jan 4, 2023

Nice catches, I'll update the PR later this week. Thank you for the review!

@xFrednet
Copy link
Member Author

xFrednet commented Jan 6, 2023

bors delegate=Niki4tap

@bors
Copy link
Contributor

bors bot commented Jan 6, 2023

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

@xFrednet
Copy link
Member Author

xFrednet commented Jan 6, 2023

Would you mind reviewing this again? Otherwise, I can also merge it at the next step as usual :)

marker_api/src/ast/pat/ident_pat.rs Outdated Show resolved Hide resolved
marker_api/src/ast/pat/struct_pat.rs Outdated Show resolved Hide resolved
Co-authored-by: Niki4tap <rombiklol2@gmail.com>
@Niki4tap
Copy link
Member

Niki4tap commented Jan 6, 2023

Looks good!

bors r+

@xFrednet
Copy link
Member Author

xFrednet commented Jan 6, 2023

I think the bors comment has to be on its own line right at the start, edits are a bit weird at times xD

Uhh magic xD. Thank you for the review <3

@bors
Copy link
Contributor

bors bot commented Jan 6, 2023

Build succeeded:

@bors bors bot merged commit 5c660c3 into rust-marker:master Jan 6, 2023
@xFrednet xFrednet deleted the 050-let-pattern-s branch January 6, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-api Area: Stable API S-waiting-on-review Status: Awaiting review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants