-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
refactor match guard #53815
refactor match guard #53815
Conversation
My only concern is that there's pretty long road between adding if-let guards into AST/HIR and making them actually work, so this might stay as dead code for some time. |
📌 Commit 7a083ca has been approved by |
Thanks! This feature is definitely a challenge to me. If no one else is doing this, I'd like to have a try. |
⌛ Testing commit 7a083ca with merge bcd0c64d4f1d1a4b58f8cf763d3a2b8d14192f06... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry |
refactor match guard This is the first step to implement RFC 2294: if-let-guard. Tracking issue: #51114 The second step should be introducing another variant `IfLet` in the Guard enum. I separated them into 2 PRs for the convenience of reviewers. r? @petrochenkov
☀️ Test successful - status-appveyor, status-travis |
📣 Toolstate changed by #53815! Tested on commit 28bcffe. 💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra). |
Tested on commit rust-lang/rust@28bcffe. Direct link to PR: <rust-lang/rust#53815> 💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra). 💔 clippy-driver on linux: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
This is the first step to implement RFC 2294: if-let-guard. Tracking issue: #51114
The second step should be introducing another variant
IfLet
in the Guard enum. I separated them into 2 PRs for the convenience of reviewers.r? @petrochenkov