Skip to content

Fix ICE for unexpected < in pattern#22544

Merged
alexcrichton merged 3 commits into
rust-lang:masterfrom
bombless:fix-pattern
Feb 23, 2015
Merged

Fix ICE for unexpected < in pattern#22544
alexcrichton merged 3 commits into
rust-lang:masterfrom
bombless:fix-pattern

Conversation

@bombless

Copy link
Copy Markdown
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
Copy Markdown
Contributor

r? @pnkfelix

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

Comment thread src/test/run-pass/issue-22426.rs Outdated

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@bombless

Copy link
Copy Markdown
Contributor Author

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

@bombless

Copy link
Copy Markdown
Contributor Author

r? @pnkfelix

@dotdash

dotdash commented Feb 22, 2015

Copy link
Copy Markdown
Contributor

@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