Skip to content

'cargo build --bin macrokata' failes with "unknown feature proc_macro_span_shrink" #64

Description

@vbendeb

I'm trying to follow the installation instructions and am seeing this error:

#  cargo build --bin macrokata
   Compiling version_check v0.9.4
   Compiling proc-macro2 v1.0.47
   Compiling libc v0.2.137
   Compiling quote v1.0.21
   Compiling unicode-ident v1.0.5
   Compiling syn v1.0.103
   Compiling cfg-if v1.0.0
   Compiling once_cell v1.16.0
   Compiling heck v0.4.0
   Compiling os_str_bytes v6.4.0
   Compiling strsim v0.10.0
   Compiling termcolor v1.1.3
   Compiling hashbrown v0.12.3
   Compiling bitflags v1.3.2
   Compiling glob v0.3.0
   Compiling clap_lex v0.3.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling ahash v0.8.2
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> <home>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.47/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 1 previous error
warning: build failed, waiting for other jobs to finish...

Cargo version is

cargo 1.85.0-nightly (66221abde 2024-11-19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions