-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 support for if let
#17634
Add support for if let
#17634
Conversation
Thanks @kballard for the fantastic work on this. I took it over, rebased it and added it to the reference. I'd love to mention it in the guide as well but I feel like @steveklabnik may have a better vision on how to do it well. :) |
cc @nick29581 since you reviewed the last one. It's mostly unchanged and passes tests for me locally. |
|
Edit: IIRC it was always the Mac bots that errored, and I'm seeing this on OS X, so it may be, for some reason, Mac-specific. But I was never able to figure out what the hell was causing it. |
Modify ast::ExprMatch to include a new value of type ast::MatchSource, making it easy to tell whether the match was written literally or produced via desugaring. This allows us to customize error messages appropriately.
It turns out that adding new diagnostics is causing link failures in runpass-full-deps tests. Further investigation pending.
minor: Make xtask install work again CC rust-lang/rust-analyzer#17559 (comment)
minor: Make xtask install work again CC rust-lang/rust-analyzer#17559 (comment)
Continuation of #16741.