{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/19181","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/19181/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/19181/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/19181/events","html_url":"https://github.com/rust-lang/rust/issues/19181","id":49694374,"number":19181,"title":"rustdoc panics if target crate has compilation errors","user":{"login":"japaric","id":5018213,"avatar_url":"https://avatars.githubusercontent.com/u/5018213?v=3","gravatar_id":"","url":"https://api.github.com/users/japaric","html_url":"https://github.com/japaric","followers_url":"https://api.github.com/users/japaric/followers","following_url":"https://api.github.com/users/japaric/following{/other_user}","gists_url":"https://api.github.com/users/japaric/gists{/gist_id}","starred_url":"https://api.github.com/users/japaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japaric/subscriptions","organizations_url":"https://api.github.com/users/japaric/orgs","repos_url":"https://api.github.com/users/japaric/repos","events_url":"https://api.github.com/users/japaric/events{/privacy}","received_events_url":"https://api.github.com/users/japaric/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-rustdoc","name":"A-rustdoc","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-ICE","name":"I-ICE","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-21T13:13:04Z","updated_at":"2015-04-21T20:53:24Z","closed_at":null,"body":"# Updated issue\r\n\r\n### STR\r\n\r\n``` rust\r\n// err.rs\r\nfn main() { 0 }\r\n```\r\n\r\n### Output\r\n\r\n```\r\n$ rustc err.rs 2>/dev/null || echo compilation error as expected\r\ncompilation error as expected\r\n$ rustdoc err.rs\r\nerr.rs:2:5: 2:6 error: mismatched types: expected `()`, found `_` (expected (), found integral variable)\r\nerr.rs:2     0\r\n             ^\r\nerror: aborting due to previous error\r\ntask '<unnamed>' panicked at 'Box<Any>', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libsyntax/diagnostic.rs:142\r\ntask '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: rustc failed', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libcore/result.rs:743\r\n```\r\n\r\n---\r\n\r\n# Original issue: rustdoc panics with `#![deny(missing_docs]` and associated items\r\n\r\n### STR\r\n\r\n``` rust\r\n#![deny(missing_docs)]\r\n#![feature(associated_types)]\r\n\r\n//! Crate\r\n\r\n/// Trait\r\npub trait AsSlice {\r\n    /// Item\r\n    type Item;\r\n\r\n    // Forgot to document the method\r\n    fn as_slice(&self) -> &[<Self as AsSlice>::Item];\r\n}\r\n```\r\n\r\n### Output\r\n\r\n``` rust\r\nai.rs:12:5: 12:53 error: missing documentation for a type method\r\nai.rs:12     fn as_slice(&self) -> &[<Self as AsSlice>::Item];\r\n             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nai.rs:1:9: 1:21 note: lint level defined here\r\nai.rs:1 #![deny(missing_docs)]\r\n                ^~~~~~~~~~~~\r\nerror: aborting due to previous error\r\ntask '<unnamed>' panicked at 'Box<Any>', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libsyntax/diagnostic.rs:142\r\ntask '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: rustc failed', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libcore/result.rs:743\r\n```\r\n\r\n### Version\r\n\r\n#19174 on top of c9f6d69\r\n\r\ncc @tomjakubowski"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/94939435","html_url":"https://github.com/rust-lang/rust/issues/19181#issuecomment-94939435","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/19181","id":94939435,"user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T20:53:24Z","updated_at":"2015-04-21T20:53:24Z","body":"@steveklabnik I think this should not be tagged I-ICE since it is strictly a `rustdoc` issue."}}