{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/16719","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/16719/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/16719/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/16719/events","html_url":"https://github.com/rust-lang/rust/issues/16719","id":41000073,"number":16719,"title":"Warning at use site for #[repr(C)] type that contains non-#[repr(C)] types","user":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-diagnostics","name":"A-diagnostics","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-lint","name":"A-lint","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-24T07:37:27Z","updated_at":"2015-08-20T01:46:03Z","closed_at":null,"body":"```rust\r\n#![allow(dead_code)]\r\n\r\nstruct Foo;\r\n#[repr(C)]\r\nstruct Bar { x: Foo }\r\n\r\nextern { fn whatever(x: Bar); }\r\n\r\nfn main() {}\r\n```\r\n\r\n```\r\n<anon>:7:25: 7:28 warning: found type without foreign-function-safe\r\n                                             representation annotation in foreign module, consider adding a #[repr(...)] attribute to the type, #[warn(ctypes)] on by default\r\n<anon>:7 extern { fn whatever(x: Bar); }\r\n                                 ^~~\r\n```\r\n\r\nThis 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.)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/132848233","html_url":"https://github.com/rust-lang/rust/issues/16719#issuecomment-132848233","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/16719","id":132848233,"user":{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T01:46:03Z","updated_at":"2015-08-20T01:46:03Z","body":"Triage comment: the warning has not changed\r\n\r\n[playpen link](http://is.gd/2V7vZX)"}}