Skip to content

Unnecessary improper_ctypes warning for extern "Rust" #64593

Closed
@josephlr

Description

@josephlr

The following code generates an improper_ctypes warning:

extern "Rust" {
    fn foo(dest: &mut [u8]) -> Result<(), Error>;
}

I would expect this sort of warning for an extern "C" declaration, but it seems incorrect for an extern "Rust" declaration. Am I misunderstanding something, or is this a warning that is safe to disable?

Metadata

Metadata

Assignees

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-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