Skip to content

Bump crossbeam-utils to 0.7 #31

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

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Bump crossbeam-utils to 0.7 #31

merged 1 commit into from
Dec 4, 2019

Conversation

alex
Copy link
Contributor

@alex alex commented Dec 4, 2019

No description provided.

@hniksic hniksic merged commit 1d548b7 into hniksic:master Dec 4, 2019
@alex alex deleted the patch-1 branch December 4, 2019 22:33
@hniksic
Copy link
Owner

hniksic commented Dec 7, 2019

@alex Have you actually tried building with crossbeam 0.7? It appears to break the build.

@alex
Copy link
Contributor Author

alex commented Dec 7, 2019 via email

@hniksic
Copy link
Owner

hniksic commented Dec 7, 2019

I did not, since it was Windows only, and I don't have a Windows machine.

Good that we have Windows CI. :) Just out of curiosity, why did you submit the PR if you're not using the functionality?

Regarding the error itself, it seems that crossbeam changed its API incompatibly. Judging by the compilation output, it should be straightforward to fix; would you like to try?

@alex
Copy link
Contributor Author

alex commented Dec 7, 2019

I try to keep my cargo.lock from bloating with too many versions of the same package, even if they're not actually being used in my builds.

@alex
Copy link
Contributor Author

alex commented Dec 7, 2019

It looks like simply unwrap()ing the Result would match the behavior of 0.5 (https://docs.rs/crossbeam-utils/0.5.0/crossbeam_utils/thread/fn.scope.html#panics). Would you like that implementation, or to attempt to turn the Err into an IoResult::Err?

@hniksic
Copy link
Owner

hniksic commented Jan 18, 2020

@alex Sorry, I apparently missed this message!

In the meantime I've made the change to unwrap() the result (so the answer to your question would have been "yes"), and also fixed the closures to accept the unused scope parameter passed by the new version.

@hniksic
Copy link
Owner

hniksic commented Jan 18, 2020

This PR is now included in the release, possibly relevant to @sanxiyn.

@hniksic
Copy link
Owner

hniksic commented Feb 2, 2020

Also, crossbeam-utils is no longer a dependency.

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

Successfully merging this pull request may close these issues.

2 participants