Rust error when running Mercurial tests

Raphaël Gomès raphael.gomes at octobus.net
Wed Oct 16 13:46:48 UTC 2024


Hi,

This looks like a bug either in proc-macro2 (which means that you could 
try changing the version with a different constraint in Cargo.toml) or a 
bug in this nightly of rustc from what I can gather online. I've never 
seen this error.

On 10/16/24 3:39 PM, PIERRE AUGIER wrote:
> Hi,
>
> I try to run Mercurial tests from the mercurial-devel repository and I get an error related to Rust. I'm using rustc 1.81.0-nightly (24d2ac0b5 2024-07-15) and I obtain:
>
>     Compiling proc-macro2 v1.0.47
>     Compiling quote v1.0.21
>     Compiling unicode-ident v1.0.5
>     Compiling syn v1.0.109
>     Compiling typenum v1.15.0
> error[E0635]: unknown feature `proc_macro_span_shrink`
>    --> /home/runner/.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)
>     |                              ^^^^^^^^^^^^^^^^^^^^^^
>
> How can I avoid this error?
>
> Regards,
> Pierre
> _______________________________________________
> Mercurial mailing list
> Mercurial at lists.mercurial-scm.org
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial


More information about the Mercurial mailing list