You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"{pubfnfoo() -> ();}fnmain(){}
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() -> ();
^~