skim icon indicating copy to clipboard operation
skim copied to clipboard

Use of unstable library features (E0658)

Open charklie opened this issue 1 year ago • 1 comments

Not sure if its anything to do with my particulate system but when i tried to install skim via cargo, cargo install skim It gave me this error;

    Updating crates.io index
  Installing skim v0.10.4
    Updating crates.io index
   Compiling autocfg v1.2.0
   Compiling proc-macro2 v1.0.80
   Compiling unicode-ident v1.0.12
   Compiling libc v0.2.153
   Compiling crossbeam-utils v0.8.19
   Compiling syn v1.0.109
   Compiling cfg-if v1.0.0
   Compiling fnv v1.0.7
   Compiling ident_case v1.0.1
   Compiling strsim v0.10.0
   Compiling once_cell v1.19.0
   Compiling memchr v2.7.2
   Compiling bitflags v1.3.2
   Compiling rayon-core v1.12.1
   Compiling regex-syntax v0.8.3
   Compiling termcolor v1.4.1
   Compiling hashbrown v0.12.3
   Compiling os_str_bytes v6.6.1
   Compiling log v0.4.21
   Compiling iana-time-zone v0.1.60
   Compiling powerfmt v0.2.0
   Compiling num-traits v0.2.18
   Compiling indexmap v1.9.3
   Compiling memoffset v0.6.5
   Compiling deranged v0.3.11
error[E0658]: use of unstable library feature 'proc_macro_byte_character'
   --> /home/chararch/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.80/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-01; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'proc_macro_c_str_literals'
   --> /home/chararch/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.80/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-01; consider upgrading it if it is out of date

   Compiling clap_lex v0.2.4
   Compiling aho-corasick v1.1.3
For more information about this error, try `rustc --explain E0658`.
error: could not compile `proc-macro2` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `skim v0.10.4`, intermediate artifacts can be found at `/tmp/cargo-installbuV8Ve`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Thanks

charklie avatar Apr 15 '24 18:04 charklie

This is mainline for rustc 1.80

werdahias avatar Oct 05 '24 21:10 werdahias

Can you reproduce now ?

LoricAndre avatar Nov 08 '24 11:11 LoricAndre

Can you reproduce now ?

Ill be home in a couple hours but Im sure it works now, Ive reinstalled my OS twice since then.

charklie avatar Nov 08 '24 13:11 charklie

Oh, a fellow distro-hopper ! I hope this works, please close the issue if it does !

LoricAndre avatar Nov 08 '24 19:11 LoricAndre

Oh, a fellow distro-hopper ! I hope this works, please close the issue if it does !

Yeah it works perfectly now, must've been something weird I did. Arch being Arch I suppose.

charklie avatar Nov 08 '24 19:11 charklie