Skip to content

improper_ctypes lint should cover "C" abi function pointer types. #95683

Closed
@crlf0710

Description

@crlf0710

I tried this code:

pub type F = extern "C" fn(&[u8]);

I expected to see this happen: improper_ctypes should trigger for this definition.

Instead, this happened: It is not linted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.L-improper_ctypes_definitionsLint: improper_ctypes_definitionsT-compilerRelevant to the compiler 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