Skip to content

Feature-gate non-Rust ABI methods #30235

Closed
@Aatch

Description

@Aatch

Currently we allow methods to be marked with the extern qualifier indicating that they have a non-Rust ABI (default is "C"). They are rather bug-ridden, only really working by accident, see #26997 and #26049.

While I personally think they shouldn't be allowed to start with, putting them behind a feature-gate until we make a decision either way seems like a good idea.

Hopefully this doesn't require an RFC, but if it does, I'll write one up and this can be a tracking issue.

/cc @rust-lang/lang

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