Skip to content

Target-specific ABIs are allowed in compatible targets #65443

Closed
@gnzlbg

Description

@gnzlbg

For example, one can use the ptx-kernel ABI on a x86_64 target. What the following does, I have absolutely no idea:

#![feature(abi_ptx)]

pub extern "ptx-kernel" fn foo(x: i32) -> i32 { x } 

(Playground)

Errors:

   Compiling playground v0.0.1 (/playground)
    Finished dev [unoptimized + debuginfo] target(s) in 0.53s

cc @eddyb @rkruppe

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions