Closed
Description
6fa17b4 made the improper_ctypes
lint trigger for tuples, but as far as I understand, returning ()
is equivalent to returning c_void, and therefore should be allowed.
Here is an example:
extern "C" {
pub fn foo() -> ();
}
fn main() {
}
foo.rs:2:21: 2:23 warning: found Rust tuple type in foreign module; consider using a struct instead`, #[warn(improper_ctypes)] on by default
foo.rs:2 pub fn foo() -> ();
^~