Skip to content

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Sep 9, 2025

Even when the feature isn't enabled, as it's not UB to invoke an undefined feature in WASM (just a trap).

Fixes #20640.

And make it easier to expand it more in the future, if needed.
Even when the feature isn't enabled, as it's not UB to invoke an undefined feature in WASM (just a trap).
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 9, 2025
@@ -194,6 +197,12 @@ impl FixtureWithProjectMeta {
fixture = remain;
}

if let Some(meta) = fixture.strip_prefix("//- target_arch:") {
Copy link
Member

Choose a reason for hiding this comment

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

I think one day we might need a dev guide docs for those test attributes. Though this one is quite straightforward but some of which introduced by me are subtle 😅

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Sep 11, 2025
Merged via the queue into rust-lang:master with commit db0420c Sep 11, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 11, 2025
@ChayimFriedman2 ChayimFriedman2 deleted the wasm-safe branch September 11, 2025 05:23
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.

False positive missing unsafe on WASM32 intrinsics
3 participants