8000 support mashup use of env!("varname") by softprops · Pull Request #12 · dtolnay/mashup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

support mashup use of env!("varname") #12

Merged
merged 2 commits into from
Oct 5, 2018

Conversation

softprops
Copy link
Contributor

fixes #11

This actually fixes another bug I found unexpected with the stringification of TokenStream::Literal(...) types the issue above as well. Two birds with one stone. I added test cases to cover my changes. This macro panics if the env var is not present with a hopefully helpful message. I wasn't sure how to cover that in a test case. Rust has #[should_panic] attribute for tests but that's don't panic at runtime not at compile time :)

Copy link
Owner
@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay merged commit a8ce774 into dtolnay:master Oct 5, 2018
@dtolnay
Copy link
Owner
dtolnay commented Oct 5, 2018

Published in 0.1.8.

@softprops
Copy link
Contributor Author

Holy smokes, that was fast! Thanks @dtolnay

I may follow up with some things small things like updating the documentation. I was also tempted to improve the macro error messages to be more helpful in understanding what input mashup was looking for but wanted to keep this pull focused.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mashing up idents with strings
2 participants
0