-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustc is using three versions of rand #57724
Comments
@scottmcm I'd like to work on this, how can I fix? make rustc use one version(maybe v0.6.1)? |
@JohnTitor You will need to look into each dependency that depends on |
@ishitatsuyuki Thanks! When I checked, it seems each rand version is used. |
Yeah, it's natural that they are all used, and you could try to eliminate those crates using old |
Oh, I'm sorry, I misunderstood. Hmmm, I think we don't have to fix this quickly and this may be a catalyst for a newbie like me to contribute, so I leave this, okay? |
@ishitatsuyuki but one could argue that it will lower the time to compile so it's worth to fix IMHO ;) |
Uh, would it be better to fix? |
Disclaimer: I'm not a core member, but IMHO this is worth fixing. Also scottmcm who is a core member opened this issue, so I guess you're good to go and fix that issue @JohnTitor :) |
Okay, I want to try to fix. For instance, |
That's one thing you can't edit, because rand is a dependency of crossbeam-channel here, so the crate crossbeam-channel needs to update its dependecy (maybe it already did and you just need to update crossbeam-channel itself)? |
For future reference, running |
Thanks @Aaron1011 ! I got this tree(gist). |
@hellow554 I'm not on compiler (or core), so don't take my word on this one 🙂 @JohnTitor It looks like upstream rayon needs 0.5, so you could consider making a PR to upgrade it to 0.6. (Maybe ask someone on rayon first.) Also, it seems that rustc-rayon hasn't been updated in 6+ months, so they'd probably appreciate a PR to upgrade it to newer upstream. |
Current rayon only uses rand as a dev-dependency, since rayon-rs/rayon#571. That wouldn't show up in Cargo.lock here at all, if rustc-rayon follows suit. |
So the latest versions are |
Update rand version cc: rust-lang#57724 r? @scottmcm
It looks like this was fixed in PR #58908 and merged by bors. Should this issue be closed now? |
There are still 3 versions of rand in use: https://github.com/rust-lang/rust/blob/master/Cargo.lock#L4173-L4175 |
#58805 will remove rand 0.5, I can get rid of 0.4 anytime but there are many PRs modifying Cargo.lock right now. |
Update: |
That's with |
I didn't check now, but at some point |
|
Bump dirs, rand and redox_users Part of rust-lang#57724.
Bump dirs, rand and redox_users Part of rust-lang#57724.
Bump dirs, rand and redox_users Part of rust-lang#57724.
I tried to fix a part of this in #61597, but it didn't come out as planned. There is dependency and license whitelist that needs to be updated. I think just running |
Last time I checked |
I think I don't know how dependencies are updated across the |
So
Correct, dependencies of everything that is created by
Dependencies are often updated separately as needed because upgrading everything at once is likely to break something and it's easier to find what is wrong when you change like 5 dependencies instead of 50.
I think it should error when you run |
Also you can run the same image that found the error ( |
Bump dirs, rand and redox_users Part of #57724.
Final nail in `rand 0.4` coffin Closes rust-lang#57724
Final nail in `rand 0.4` coffin Closes #57724
I noticed this scrolling by while "Building stage0 compiler artifacts" today:
Optimistically flagging E-easy
The text was updated successfully, but these errors were encountered: