Skip to content
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

Revise #[track_caller] condition on UnwrapThrowExt #4042

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Aug 3, 2024

The conditions for #[track_caller] on UnwrapThrowExt were exclusively using the cfg(debug_assertions) condition, which made them not apply when using them on native targets.
This PR adds a check for wasm32-unknown-unknown.

Fixes missing cfg(debug_assertions) condition in impl UnwrapThrowExt for Result, which was missed in #4035.
Remove wrong cfg(feature = "std") condition on UnwrapThrowExt::unwrap_throw()s default implementation, which was missed in #4005.

Thanks @Liamolucko!

Fixes missing `cfg(debug_assertions)` condition in `impl UnwrapThrowExt for Result`.
Remove wrong `cfg(feature = "std")` condition on `UnwrapThrowExt::unwrap_throw()`s default implementation.

Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
@daxpedda daxpedda merged commit 2308e61 into rustwasm:main Aug 3, 2024
27 checks passed
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