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

Bump proc_macro2 to support building on nightly rust #1381

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

joshuataylor
Copy link
Contributor

Nightly rust seems to need a bump of proc_macro2.

Without this, the following error occurs:

   Compiling proc-macro2 v1.0.52
   Compiling fd-find v8.7.0 (/home/josh/dev/fd)
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/josh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.52/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error

I just ran cargo update proc-macro2, which fixes the issue.

cargo update proc-macro2

Otherwise the error "error[E0635]: unknown feature
`proc_macro_span_shrink`" will display and the build will fail.

Seems to be okay as of nightly 62ebe3a2b 2023-09-08
@tavianator tavianator merged commit 995d2f5 into sharkdp:master Sep 19, 2023
15 checks passed
@joshuataylor joshuataylor deleted the bump-proc_macro branch September 19, 2023 02:03
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