Skip to content

More regex_macros tweaks & some quasiquoter/AST fixes #13879

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 3 commits into from
May 2, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented May 1, 2014

Commits for details.

This shouldn't change the generated code at all (except for switching to LitBinary from an explicit ExprVec of individual ExprLit bytes for prefix_bytes).

@alexcrichton
Copy link
Member

Nice cleanups! It'd be nice to add a small test for some of the new functionality, but other than that, r=me

huonw added 3 commits May 2, 2014 22:54
Clearly storing them as `char` is semantically nicer, but this also
fixes a bug whereby `quote_expr!(cx, 'a')` wasn't working, because the
code created by quotation was not matching the actual AST definitions.
The last few primitive types were missing.
char literals now work in a quotation.

There were several instances of duplicated functionality in regex_macros
compared to AstBuilder so refactor those out.
bors added a commit that referenced this pull request May 2, 2014
Commits for details.

This shouldn't change the generated code at all (except for switching to `LitBinary` from an explicit ExprVec of individual ExprLit bytes for `prefix_bytes`).
@bors bors closed this May 2, 2014
@bors bors merged commit 1ad0cba into rust-lang:master May 2, 2014
@huonw huonw deleted the more-re branch June 27, 2014 06:47
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