-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Make it possible to use indoc with explicit use indoc::indoc;
#24
Comments
Looks like |
Thanks! I believe this would be fixed by updating to proc-macro-hack 0.5. |
Hmm after upgrading fails with a hard compilation error:
|
Recalled I had a similar issue with quote in the past, and indeed force-upgrading
It feels like dependencies of syn should be stricter regarding minimal version to help Cargo resolve, e.g. here https://github.com/dtolnay/proc-macro-hack/blob/master/Cargo.toml#L17 would be nice to set to some minimal version that is actually known to work. |
Thanks for letting me know. Should be fixed in 0.3.1. |
Thanks! |
note that using `use structure::structure` should be sufficient (see: [macro-changes](https://doc.rust-lang.org/edition-guide/rust-2018/macros/macro-changes.html)), but requires an update to the `proc-macro-hack` dependency (see: dtolnay/indoc#24).
note that using `use structure::structure` should be sufficient (see: [macro-changes](https://doc.rust-lang.org/edition-guide/rust-2018/macros/macro-changes.html)), but requires an update to the `proc-macro-hack` dependency (see: dtolnay/indoc#24).
Currently indoc works only with
#[macro_use]
attribute but it would be nice to be able to use it with Rust 2018 style of explicit use statements. E.g. this fails:with
The text was updated successfully, but these errors were encountered: