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

work around Rust bug to allow macros in expr #17

Merged
merged 1 commit into from
Mar 4, 2016

Conversation

durka
Copy link
Contributor

@durka durka commented Feb 28, 2016

This is a workaround for a bug in Rust (rust-lang/rust#31946) which causes parsing to fail on macros defined within calls to println!.

DanielKeep added a commit that referenced this pull request Mar 4, 2016
work around Rust bug to allow macros in expr
@DanielKeep DanielKeep merged commit 03f444e into DanielKeep:master Mar 4, 2016
@DanielKeep
Copy link
Owner

Just a question: is there any reason for the variable name to be like that? I mean, it does get immediately used (so it shouldn't need a leading _), and it's not in scope until the next statement, so it shouldn't conflict with anything. ... Unless the user does something pathological like:

"scope"}; { println!("Screw your attempt to {} me!", __cargo_script_expr)

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