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

syntax: switch tt quoter to emit ~[tt], not tt. #4010

Merged
merged 1 commit into from
Nov 21, 2012

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Nov 21, 2012

This is just a small change to make the tt quasiquoter quote ~[token_tree] vectors, rather than token_tree values. It is less efficient this way but it seems like the only sensible interpretation given the semantics of token trees: their nesting is mostly incidental and doesn't actually represent the expression or item structure (for example: if foo { ... } is three token-trees, despite being one expression).

r? @brson

@brson
Copy link
Contributor

brson commented Nov 21, 2012

r+

@graydon graydon merged commit 497a8b5 into rust-lang:incoming Nov 21, 2012
RalfJung added a commit to RalfJung/rust that referenced this pull request Nov 10, 2024
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.

2 participants