Skip to content

Prevent Regex::new() from panicking when a non-AST item is repeated #20238

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

Merged
merged 1 commit into from
Dec 27, 2014

Conversation

barosl
Copy link
Contributor

@barosl barosl commented Dec 26, 2014

This bug has also affected the regex! macro, which has caused an ICE when such an invalid expression is provided.

Fixes #20208.

This bug has also affected the regex! macro, which has caused an ICE
when such an invalid expression is provided.

Fixes rust-lang#20208.
@rust-highfive
Copy link
Contributor

r? @huonw

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

bors added a commit that referenced this pull request Dec 27, 2014
This bug has also affected the `regex!` macro, which has caused an ICE when such an invalid expression is provided.

Fixes #20208.
@bors bors merged commit 0bd8534 into rust-lang:master Dec 27, 2014
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.

Compiler panic when try to execute incorrect regex!
4 participants