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 support for if let #17634

Merged
merged 9 commits into from Oct 1, 2014
Merged

Add support for if let #17634

merged 9 commits into from Oct 1, 2014

Conversation

ghost
Copy link

@ghost ghost commented Sep 29, 2014

Continuation of #16741.

@alexcrichton alexcrichton mentioned this pull request Sep 29, 2014
@ghost
Copy link
Author

ghost commented Sep 29, 2014

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. :)

@ghost
Copy link
Author

ghost commented Sep 29, 2014

cc @nick29581 since you reviewed the last one. It's mostly unchanged and passes tests for me locally.

@lilyball
Copy link
Contributor

make tidy error:

/home/travis/build/rust-lang/rust/src/librustc/middle/check_match.rs:270: line longer than 100 chars

@lilyball
Copy link
Contributor

make check still fails with this PR for the same reason that my original PR stalled out. I'm getting the same "Symbol not found" errors.

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.

lilyball and others added 9 commits September 30, 2014 18:54
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.
bors added a commit that referenced this pull request Sep 30, 2014
@bors bors closed this Oct 1, 2014
@bors bors merged commit e723051 into rust-lang:master Oct 1, 2014
@ghost ghost deleted the if_let branch October 2, 2014 20:24
bors added a commit that referenced this pull request Oct 13, 2014
This is *heavily* based on `if let` (#17634) by @jakub- and @kballard

This should close #17687
lnicola pushed a commit to lnicola/rust that referenced this pull request Jul 28, 2024
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants