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

found crate cfg_if compiled by an incompatible version of rustc #46

Closed
pickfire opened this issue Jul 29, 2021 · 1 comment
Closed

found crate cfg_if compiled by an incompatible version of rustc #46

pickfire opened this issue Jul 29, 2021 · 1 comment

Comments

@pickfire
Copy link

pickfire commented Jul 29, 2021

I think this is more of a rust issue rather than cfg-if issue so just reporting it here. I was building cfg-if using stable compiler, I might have built it with nightly compiler in the past. Feel free to close this (since I don't think it is actionable), I did send this to rust rust-lang/rust#86551. Note that cargo b works but only cargo c does not work.

> cargo c
error[E0514]: found crate `cfg_if` compiled by an incompatible version of rustc
 --> /home/ivan/.cargo/registry/src/github.com-1ecc6299db9ec823/instant-0.1.10/src/lib.rs:1:1
  |
1 | cfg_if::cfg_if! {
  | ^^^^^^
  |
  = help: please recompile that crate using this compiler (rustc 1.55.0-nightly (32c9b7b09 2021-07-21))
  = note: the following crate versions were found:
          crate `cfg_if` compiled by rustc 1.55.0-nightly (6d820866a 2021-06-29): /home/ivan/src/pickfire/rs/helix/target/debug/deps/libcfg_if-a9897b30e482daf2.rmeta

error: could not compile `which` due to previous error
warning: build failed, waiting for other jobs to finish...
error[E0514]: found crate `cfg_if` compiled by an incompatible version of rustc
   --> /home/ivan/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.14/src/lib.rs:283:1
    |
283 | extern crate cfg_if;
    | ^^^^^^^^^^^^^^^^^^^^
    |
    = help: please recompile that crate using this compiler (rustc 1.55.0-nightly (32c9b7b09 2021-07-21))
    = note: the following crate versions were found:
            crate `cfg_if` compiled by rustc 1.55.0-nightly (6d820866a 2021-06-29): /home/ivan/src/pickfire/rs/helix/target/debug/deps/libcfg_if-a9897b30e482daf2.rmeta

error[E0514]: found crate `cfg_if` compiled by an incompatible version of rustc
  --> /home/ivan/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.8.5/src/lib.rs:95:5
   |
95 | use cfg_if::cfg_if;
   |     ^^^^^^
   |
   = help: please recompile that crate using this compiler (rustc 1.55.0-nightly (32c9b7b09 2021-07-21))
   = note: the following crate versions were found:
           crate `cfg_if` compiled by rustc 1.55.0-nightly (6d820866a 2021-06-29): /home/ivan/src/pickfire/rs/helix/target/debug/deps/libcfg_if-a9897b30e482daf2.rmeta

error[E0514]: found crate `tinyvec_macros` compiled by an incompatible version of rustc
 --> /home/ivan/.cargo/registry/src/github.com-1ecc6299db9ec823/tinyvec-1.3.0/src/tinyvec.rs:7:5
  |
7 | use tinyvec_macros::impl_mirrored;
  |     ^^^^^^^^^^^^^^
  |
  = help: please recompile that crate using this compiler (rustc 1.55.0-nightly (32c9b7b09 2021-07-21))
  = note: the following crate versions were found:
          crate `tinyvec_macros` compiled by rustc 1.55.0-nightly (6d820866a 2021-06-29): /home/ivan/src/pickfire/rs/helix/target/debug/deps/libtinyvec_macros-177747a26e6502c4.rmeta

error[E0514]: found crate `cfg_if` compiled by an incompatible version of rustc
   --> /home/ivan/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_rs-0.8.28/src/lib.rs:689:1
    |
689 | extern crate cfg_if;
    | ^^^^^^^^^^^^^^^^^^^^
    |
    = help: please recompile that crate using this compiler (rustc 1.55.0-nightly (32c9b7b09 2021-07-21))
    = note: the following crate versions were found:
            crate `cfg_if` compiled by rustc 1.55.0-nightly (6d820866a 2021-06-29): /home/ivan/src/pickfire/rs/helix/target/debug/deps/libcfg_if-a9897b30e482daf2.rmeta

error: build failed
@pickfire
Copy link
Author

Closing this, not really the crate issue, I found it also happens to other crate.

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