Skip to content

Consider changing the non_snake_case lint to skip names of #[no_mangle] extern functions #31924

Closed
@sfackler

Description

@sfackler

Since the function is tagged #[no_mangle] the exact name presumably has to exactly match something that another system is expecting, which may not be snake case. For example, JNI bindings will look something like

#[no_mangle]
unsafe extern "C" fn Java_package_name_ClassName_methodName(...) { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions