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

Fix ICE for unexpected < in pattern #22544

Merged
merged 3 commits into from
Feb 23, 2015
Merged

Conversation

bombless
Copy link
Contributor

Closes #22426

I'm not sure which is better:

  • simply "unexpected token <"
  • "unexpected token <, expect one of =>, :, ("

But this PR is actually mergable now

@rust-highfive
Copy link
Collaborator

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

impl<T> Foo<T> {
fn foo(&self) {
match *self {
Foo::<T>(ref x, ref y) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I'm not actually sure we should accept this syntax in a pattern ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(of course it could be that we're already accepting this syntax in a pattern. But nonetheless, I'm not sure I want to validate such acceptance in a formal test.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But current nightly accept it.
I was surprised too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, lets bring up this up as a separate question to the team. (We have a triage meeting in 1.5 hours; I'll file a ticket for it.)

@pnkfelix
Copy link
Member

@bombless r=me if you remove the aforementioned questionable run-pass test.

@bombless
Copy link
Contributor Author

@bors r=pnkfelix
#22172 seems that rebase will be needed soon.

@bombless
Copy link
Contributor Author

r? @pnkfelix

@dotdash
Copy link
Contributor

dotdash commented Feb 22, 2015

@bors r=pnkfelix b13e072

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.

Panic: "internal compiler error: ident only path should have been covered already"
5 participants