Skip to content

Fixes for latest rust #7

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
Mar 11, 2015
Merged

Fixes for latest rust #7

merged 1 commit into from
Mar 11, 2015

Conversation

andresilva
Copy link
Contributor

Fixes for rustc 1.0.0-nightly (b47aebe3f 2015-02-26) (built 2015-02-26).

let value = Dropper(counter_clone);
let t = Thunk::<()>::new(move || {
// Get a reference so value is captured.
let _x = &value;

panic!("Muahahahah")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's no longer possible to handle panics from scoped threads (PR #22435). I'm not entirely sure if the panic was relevant to the test logic.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the panic is actually quite important, since this is testing the behavior of a thunk under a panic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, although I don't know how to fix it.

@andresilva andresilva force-pushed the fix-latest-rust branch 3 times, most recently from 9cefc36 to e8fd0d9 Compare February 28, 2015 00:41
@andresilva
Copy link
Contributor Author

I've updated to rust 1.0.0-nightly (12b846ab8 2015-03-09) (built 2015-03-09). It is now possible to join spawned threads and handle panics, so the original unit test behavior is restored.

@reem
Copy link
Owner

reem commented Mar 11, 2015

Excellent! Thank you very much.

reem added a commit that referenced this pull request Mar 11, 2015
@reem reem merged commit 55ffe18 into reem:master Mar 11, 2015
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