Skip to content

disallow extern "custom" on wasm and spirv targets#158621

Open
folkertdev wants to merge 4 commits into
rust-lang:mainfrom
folkertdev:abi-custom-wasm
Open

disallow extern "custom" on wasm and spirv targets#158621
folkertdev wants to merge 4 commits into
rust-lang:mainfrom
folkertdev:abi-custom-wasm

Conversation

@folkertdev

Copy link
Copy Markdown
Contributor

tracking issue: #140829

I'm not sure if we should exclude any other architectures? The GPU ones are a bit suspect maybe?

@folkertdev folkertdev added the F-abi_custom `#![feature(abi_custom)]` label Jun 30, 2026
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 30, 2026
@folkertdev folkertdev changed the title Abi custom wasm disallow extern "custom" on wasm targets Jun 30, 2026
@bjorn3

bjorn3 commented Jun 30, 2026

Copy link
Copy Markdown
Member

I think it would make sense to deny on spirv, but native gpu archs are not typed and thus can handle custom ABIs just fine.

@folkertdev

Copy link
Copy Markdown
Contributor Author

cc @tgross35

r? bjorn3

@folkertdev folkertdev changed the title disallow extern "custom" on wasm targets disallow extern "custom" on wasm and spirv targets Jun 30, 2026
@folkertdev folkertdev marked this pull request as ready for review June 30, 2026 18:06
@rustbot

rustbot commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

These commits modify compiler targets.
(See the Target Tier Policy.)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 30, 2026
@rust-log-analyzer

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-abi_custom `#![feature(abi_custom)]` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants