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

Improve the check_pat_enum logic #32039

Merged
merged 2 commits into from Mar 4, 2016

Conversation

Projects
None yet
6 participants
@arielb1
Copy link
Contributor

arielb1 commented Mar 4, 2016

Fixes #32004

r? @eddyb

fn main() {
match Foo::Baz {
Foo::Bar => {}
//~^ ERROR this pattern has 0 fields, but the corresponding

This comment has been minimized.

@nagisa

nagisa Mar 4, 2016

Contributor

Could you expand the expected message to also include “variant” here?


match S {
S(()) => {}
//~^ ERROR this pattern has 1 field, but the corresponding

This comment has been minimized.

@nagisa

nagisa Mar 4, 2016

Contributor

And “struct” here?

This comment has been minimized.

@arielb1

arielb1 Mar 4, 2016

Author Contributor

fixed

@arielb1 arielb1 force-pushed the arielb1:pat-enum branch from c73bbfe to f40d12f Mar 4, 2016

@nagisa

This comment has been minimized.

Copy link
Contributor

nagisa commented Mar 4, 2016

@bors r+ f40d12f

Looks good to me.

@nagisa

This comment has been minimized.

Copy link
Contributor

nagisa commented Mar 4, 2016

I nominate this for beta since this fixes a regression from stable to nightly (now beta) and we recently had a release.

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Mar 4, 2016

⌛️ Testing commit f40d12f with merge d31d8a9...

bors added a commit that referenced this pull request Mar 4, 2016

@bors bors merged commit f40d12f into rust-lang:master Mar 4, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details

@llogiq llogiq referenced this pull request Mar 6, 2016

Closed

TWIR 121's CotW + PRs #176

@brson brson removed the beta-nominated label Mar 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.