rust-lang / crater

Run experiments across parts of the Rust ecosystem!
https://crater.rust-lang.org
642 stars 90 forks source link

fix build failure caused by `stdsimd` feature #724

Closed wangkirin closed 8 months ago

wangkirin commented 8 months ago

I try to build a crater service in our CI pipeline, and when I try to compile crater, error occurs:

error[E0635]: unknown feature `stdsimd`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.6/src/lib.rs:99:42
   |
99 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
   |                                          ^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `ahash` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

my rust verion is

rustc 1.78.0-nightly (3cbb93223 2024-03-13)
``` ,

I think this failure is caused by  the remove of `stdsimd` feature and the `ahash` package has already updated to fix it : https://github.com/tkaitchuck/aHash/pull/183

I run `cargo update -p ahash` to slove this and seems `crc32c`  has the similar problem

error[E0635]: unknown feature stdsimd --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crc32c-0.6.4/src/lib.rs:23:30 | 23 | #![cfg_attr(nightly, feature(stdsimd))] | ^^^^^^^

For more information about this error, try rustc --explain E0635. error: could not compile crc32c (lib) due to 1 previous error


after I run `cargo update -p crc32c`, the complie process is OK

this PR update the Cargo.lock to fix this issue
wangkirin commented 8 months ago

just found there is a PR already in the list so I closed this PR first