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

Compilation fails at proc-macro2 #5

Closed
lulingar opened this issue Apr 26, 2024 · 1 comment
Closed

Compilation fails at proc-macro2 #5

lulingar opened this issue Apr 26, 2024 · 1 comment

Comments

@lulingar
Copy link

lulingar commented Apr 26, 2024

I'm trying this repo out, with some changes from #4, but I get this traceback during cargo run:

   ...
   Compiling regex-syntax v0.8.3
error[E0658]: use of unstable library feature 'proc_macro_byte_character'
   --> /home/being/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.81/src/wrapper.rs:871:21
    |
871 |                     proc_macro::Literal::byte_character(byte)
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #115268 <https://github.com/rust-lang/rust/issues/115268> for more information
    = help: add `#![feature(proc_macro_byte_character)]` to the crate attributes to enable
    = note: this compiler was built on 2024-04-03; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'proc_macro_c_str_literals'
   --> /home/being/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.81/src/wrapper.rs:898:21
    |
898 |                     proc_macro::Literal::c_string(string)
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #119750 <https://github.com/rust-lang/rust/issues/119750> for more information
    = help: add `#![feature(proc_macro_c_str_literals)]` to the crate attributes to enable
    = note: this compiler was built on 2024-04-03; consider upgrading it if it is out of date

I guess this happens due to a breaking change in proc-macro2 which isn't pinned in Cargo.toml? (ah, it seems to be the case)

@lulingar lulingar changed the title Compilation fails at Compilation fails at proc-macro2 Apr 26, 2024
@lulingar
Copy link
Author

Ok, so this worked by updating my rust nightly to 1.79+.

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