{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/50541","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/50541/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/50541/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/50541/events","html_url":"https://github.com/rust-lang/rust/pull/50541","id":321304594,"number":50541,"title":"rustdoc: replace most (e)println! statements with structured warnings/errors","user":{"login":"QuietMisdreavus","id":5217170,"avatar_url":"https://avatars2.githubusercontent.com/u/5217170?v=4","gravatar_id":"","url":"https://api.github.com/users/QuietMisdreavus","html_url":"https://github.com/QuietMisdreavus","followers_url":"https://api.github.com/users/QuietMisdreavus/followers","following_url":"https://api.github.com/users/QuietMisdreavus/following{/other_user}","gists_url":"https://api.github.com/users/QuietMisdreavus/gists{/gist_id}","starred_url":"https://api.github.com/users/QuietMisdreavus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuietMisdreavus/subscriptions","organizations_url":"https://api.github.com/users/QuietMisdreavus/orgs","repos_url":"https://api.github.com/users/QuietMisdreavus/repos","events_url":"https://api.github.com/users/QuietMisdreavus/events{/privacy}","received_events_url":"https://api.github.com/users/QuietMisdreavus/received_events","type":"User","site_admin":false},"labels":[{"id":583437191,"url":"https://api.github.com/repos/rust-lang/rust/labels/S-waiting-on-bors","name":"S-waiting-on-bors","color":"d3dddd","default":false}],"state":"open","locked":false,"assignee":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars0.githubusercontent.com/u/3050060?v=4","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false},"assignees":[{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars0.githubusercontent.com/u/3050060?v=4","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false}],"milestone":null,"comments":16,"created_at":"2018-05-08T18:51:47Z","updated_at":"2018-05-16T04:00:25Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/50541","html_url":"https://github.com/rust-lang/rust/pull/50541","diff_url":"https://github.com/rust-lang/rust/pull/50541.diff","patch_url":"https://github.com/rust-lang/rust/pull/50541.patch"},"body":"Turns out, the rustc diagnostic handler doesn't need a whole lot of setup that we weren't already doing. For errors that occur outside a \"dealing with source code\" context, we can just use the format/color config we were already parsing and make up a `Handler` that we can emit structured warnings/errors from. So i did that. This will make it way easier to test things with `rustdoc-ui` tests, since those require the JSON error output. (In fact, this PR is a yak shave for a different one where i was trying to do just that. `>_>`)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/389387273","html_url":"https://github.com/rust-lang/rust/pull/50541#issuecomment-389387273","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/50541","id":389387273,"user":{"login":"bors","id":3372342,"avatar_url":"https://avatars2.githubusercontent.com/u/3372342?v=4","gravatar_id":"","url":"https://api.github.com/users/bors","html_url":"https://github.com/bors","followers_url":"https://api.github.com/users/bors/followers","following_url":"https://api.github.com/users/bors/following{/other_user}","gists_url":"https://api.github.com/users/bors/gists{/gist_id}","starred_url":"https://api.github.com/users/bors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors/subscriptions","organizations_url":"https://api.github.com/users/bors/orgs","repos_url":"https://api.github.com/users/bors/repos","events_url":"https://api.github.com/users/bors/events{/privacy}","received_events_url":"https://api.github.com/users/bors/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T04:00:25Z","updated_at":"2018-05-16T04:00:25Z","author_association":"CONTRIBUTOR","body":":sunny: Test successful - [status-appveyor](https://ci.appveyor.com/project/rust-lang/rust/build/1.0.7420), [status-travis](https://travis-ci.org/rust-lang/rust/builds/379510337?utm_source=github_status&utm_medium=notification)\nApproved by: GuillaumeGomez\nPushing 3c31e17ddc8914365145683e6d56fa0229a01a8e to master..."}}
{"actor":{"display_login":"bors"}}