Skip to content

rust-call call ABI is not feature gated in all points of declaration #34900

Closed
@pnkfelix

Description

@pnkfelix

Test case playpen

fn foo() { println!("foo"); }

fn main() {
    let f: extern "rust-call" fn((), ());
    f = unsafe { std::mem::transmute(foo as fn()) };
    f((), ())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions