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?
The following code generates an
improper_ctypeswarning:I would expect this sort of warning for an
extern "C"declaration, but it seems incorrect for anextern "Rust"declaration. Am I misunderstanding something, or is this a warning that is safe to disable?