Skip to content

Foreign functions are missing their ABI in rustdoc #22038

Closed
@tomjakubowski

Description

@tomjakubowski

For example:

extern "C" {
    pub fn foo();
}

Is simply rendered in rustdoc as pub unsafe fn foo(). It should likely show the ABI as well as the unsafety. There should also probably be some indication that this is a foreign function, to distinguish from an Rust function with a not-Rust ABI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc 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