Skip to content

Use cfg(panic = unwind) instead of a check for wasm32 to see if unwinding is supported#1341

Merged
dhardy merged 3 commits into
rust-random:masterfrom
bjorn3:panic_abort_test
Oct 11, 2023
Merged

Use cfg(panic = unwind) instead of a check for wasm32 to see if unwinding is supported#1341
dhardy merged 3 commits into
rust-random:masterfrom
bjorn3:panic_abort_test

Conversation

@bjorn3

@bjorn3 bjorn3 commented Oct 2, 2023

Copy link
Copy Markdown
Contributor

This allows the test to run on a future wasm target with exception support as well as running the test suite with panic=abort on non-wasm targets.

…ding is supported

This allows the test to run on a future wasm target with exception support as
well as running the test suite with panic=abort on non-wasm targets.
@bjorn3

bjorn3 commented Oct 2, 2023

Copy link
Copy Markdown
Contributor Author

@bjorn3

bjorn3 commented Oct 2, 2023

Copy link
Copy Markdown
Contributor Author

Looks like this is not yet available for the MSRV (1.56). It is only available starting from 1.60. It is a test, not something that would get compiled when using it as dependency, so maybe that is fine?

@dhardy

dhardy commented Oct 4, 2023

Copy link
Copy Markdown
Member

Honestly, upgrading to 1.60 should be fine.

@bjorn3

bjorn3 commented Oct 4, 2023

Copy link
Copy Markdown
Contributor Author

Pushed a commit to update the MSRV.

@newpavlov

Copy link
Copy Markdown
Member

Regarding the remaining CI failure, you can replace mips-unknown-linux-gnu with powerpc-unknown-linux-gnu.

@dhardy dhardy merged commit e42c385 into rust-random:master Oct 11, 2023
@bjorn3 bjorn3 deleted the panic_abort_test branch October 11, 2023 08:09
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.

3 participants