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
For example a public C function which is not #[no_mangle] is likely that way because the author forgot to include it. On the other hand, a public struct is quite likely to be not intended to be used from C so we don't want to warn about that.
Combinations which should be warned:
pub extern <C style ABI> fn with no #[no_mangle]
#[no_mangle] pub fn with no extern
use of types which are not pointers, function pointers, or paths
The text was updated successfully, but these errors were encountered:
Sean1708
changed the title
Add warnings for items which only match some of the inclusion criteria.
Add more warnings and errors.
Dec 8, 2015
But only when it makes sense.
For example a public C function which is not
#[no_mangle]
is likely that way because the author forgot to include it. On the other hand, a public struct is quite likely to be not intended to be used from C so we don't want to warn about that.Combinations which should be warned:
pub extern <C style ABI> fn
with no#[no_mangle]
#[no_mangle] pub fn
with noextern
The text was updated successfully, but these errors were encountered: