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
{{ message }}
Repository navigation
Warning at use site for #[repr(C)] type that contains non-#[repr(C)] types #16719
<anon>:7:25: 7:28 warning: found type without foreign-function-safe
representation annotation in foreign module, consider adding a #[repr(...)] attribute to the type, #[warn(ctypes)] on by default
<anon>:7 extern { fn whatever(x: Bar); }
^~~
This could either be a warning on Bar, that Foo isn't FFI safe; or not a warning at all. (Or, at the very least, a note pointing to the x field, to help diagnose the problem.)
Since new lints have a big impact on users of rustc, the policy is that they should go through the RFC process like other user-facing changes. As such, I'm going to give this one a close, but if anyone comes across this ticket and wants this lint, consider adding it to clippy and/or writing up an RFC. Thanks!
Activity
o11c commentedon Aug 24, 2014
Significantly, this occurs even if the struct contains only a pointer-to-non-repr-C-struct
frewsxcv commentedon Aug 20, 2015
Triage comment: the warning has not changed
playpen link
steveklabnik commentedon Feb 11, 2016
Since new lints have a big impact on users of rustc, the policy is that they should go through the RFC process like other user-facing changes. As such, I'm going to give this one a close, but if anyone comes across this ticket and wants this lint, consider adding it to clippy and/or writing up an RFC. Thanks!
Auto merge of rust-lang#16719 - lnicola:native-debug, r=lnicola