Skip to content

Use AssertUnwindSafe instead of trait UnwindSafe.#39

Merged
mgautierfr merged 1 commit into
mainfrom
assert_unwind
May 30, 2025
Merged

Use AssertUnwindSafe instead of trait UnwindSafe.#39
mgautierfr merged 1 commit into
mainfrom
assert_unwind

Conversation

@mgautierfr
Copy link
Copy Markdown
Owner

@mgautierfr mgautierfr commented May 30, 2025

As specified in the documentation, UnwindSafe is mostly an advisory those some invariant may be broken if a panic appears.

Enforcing that all test functions are UnwindSafe can be difficult or impossible depending of what is tested.

As specified in the documentation[1], UnwindSafe is mostly an advisory
those some invariant may be broken if a panic appears.

Enforcing that all test functions are UnwindSafe can be difficult or
impossible depending of what is tested.

[1] https://doc.rust-lang.org/stable/std/panic/trait.UnwindSafe.html
@mgautierfr mgautierfr merged commit 4309ed8 into main May 30, 2025
9 checks passed
@mgautierfr mgautierfr deleted the assert_unwind branch May 30, 2025 13:02
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.

1 participant