-
Notifications
You must be signed in to change notification settings - Fork 468
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
Crossbeam channel v0.3.7 fails to compile #312
Comments
Gah, it's because it requires the latest version of I'll publish a new minor version with a fix. |
@stjepang You might find testing with minimal versions to be helpful. For example: https://github.com/rust-lang/regex/blob/60d087a23025e045ae754a345b04003c31d83d93/ci/script.sh#L53-L56 |
Ok, I've published 0.3.8 that bumps the @BurntSushi Thank you, that's exactly what I'm looking for! :) |
Thanks, all! |
@stjepang Works for me! Looks like this can be closed. |
@BurntSushi Transitive dependencies break under
Lots of other folks reported similar problems with - it looks like the whole crates ecosystem is broken in this aspect because no one cares about minimal versions. :( Did you have better luck with |
Yes. I ran into the same problem. This was the PR that added the check to It looks like this was discussed in servo/rust-smallvec#128, but we don't need to bump the MSRV to do this. They can just inline what they need from |
Fixes servo#128 by inlining the tiny amount of code we use from `unreachable` and its dependency `void`. Eventually this can be replaced with `std::hint::unrechable_unchecked` but this will require bumping our minumum supported Rust version. This will prevent build breakage from users building with broken versions of the `void` crate, as in crossbeam-rs/crossbeam#312.
Remove dependency on unmaintained 'unreachable' crate Fixes #128 by inlining the tiny amount of code we use from `unreachable` and its dependency `void`. Eventually this can be replaced with `std::hint::unrechable_unchecked` but this will require bumping our minumum supported Rust version. This will prevent build breakage from users building with broken versions of the `void` crate, as in crossbeam-rs/crossbeam#312. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/140) <!-- Reviewable:end -->
It looks like |
Thanks for the update! Unfortunately, building with minimal dependencies still doesn't work: error: expected identifier, found `"std"`
--> /home/stjepan/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.1.1/rust/src/liblibc/lib.rs:79:46
|
79 | #[cfg(feature = "cargo-build")] extern crate "std" as core;
| ^^^^^ expected identifier
error: aborting due to previous error
error: Could not compile `libc`.
warning: build failed, waiting for other jobs to finish...
error[E0407]: method `seed_from_u64` is not a member of trait `SeedableRng`
--> /home/stjepan/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_isaac-0.1.0/src/isaac.rs:126:5
|
126 | / fn seed_from_u64(seed: u64) -> Self {
127 | | IsaacRng(BlockRng::<IsaacCore>::seed_from_u64(seed))
128 | | }
| |_____^ not a member of trait `SeedableRng`
error[E0407]: method `seed_from_u64` is not a member of trait `SeedableRng`
--> /home/stjepan/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_isaac-0.1.0/src/isaac.rs:331:5
|
331 | / fn seed_from_u64(seed: u64) -> Self {
332 | | let mut key = [w(0); RAND_SIZE];
333 | | key[0] = w(seed as u32);
334 | | key[1] = w((seed >> 32) as u32);
... |
341 | | Self::init(key, 1)
342 | | }
| |_____^ not a member of trait `SeedableRng` There are many more errors after that. We could manually require higher minimal versions of broken packages by adding them as dependencies to |
@stjepang Thanks for trying! I filed rust-random/rand#741 |
341: Add minimal versions check to travis r=stjepang a=taiki-e Related: #312, rust-lang/cargo#5657 Co-authored-by: Taiki Endo <te316e89@gmail.com>
including Crossbeam channel v0.3.7 fails to compile with the error:
this appears to be because of a mismatch between channel and utils
The text was updated successfully, but these errors were encountered: