{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23782","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23782/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23782/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23782/events","html_url":"https://github.com/rust-lang/rust/pull/23782","id":64787030,"number":23782,"title":"Add emit_for function in diagnostic","user":{"login":"mvdnes","id":1009841,"avatar_url":"https://avatars.githubusercontent.com/u/1009841?v=3","gravatar_id":"","url":"https://api.github.com/users/mvdnes","html_url":"https://github.com/mvdnes","followers_url":"https://api.github.com/users/mvdnes/followers","following_url":"https://api.github.com/users/mvdnes/following{/other_user}","gists_url":"https://api.github.com/users/mvdnes/gists{/gist_id}","starred_url":"https://api.github.com/users/mvdnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvdnes/subscriptions","organizations_url":"https://api.github.com/users/mvdnes/orgs","repos_url":"https://api.github.com/users/mvdnes/repos","events_url":"https://api.github.com/users/mvdnes/events{/privacy}","received_events_url":"https://api.github.com/users/mvdnes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-03-27T15:39:44Z","updated_at":"2015-04-16T17:42:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/23782","html_url":"https://github.com/rust-lang/rust/pull/23782","diff_url":"https://github.com/rust-lang/rust/pull/23782.diff","patch_url":"https://github.com/rust-lang/rust/pull/23782.patch"},"body":"When emmitting a note, previously it was not known if the note was for an error or a\r\nwarning. If it was for a warning, then with `-Awarnings` it should not have been print.\r\nThe `emit_for` function allows someone to specify which level should determine its visibility.\r\n\r\nAn example:\r\n```rust\r\nextern crate \"std\" as std2;\r\nfn main() {}\r\n```\r\n\r\nWhen compiling with `-Awarnings`, this would previously emit `note: use an identifier not in quotes instead` (and nothing else).\r\nWith this patch, it will be completely silent as expected."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/93794849","html_url":"https://github.com/rust-lang/rust/pull/23782#issuecomment-93794849","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/23782","id":93794849,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T17:42:05Z","updated_at":"2015-04-16T17:42:05Z","body":"Sounds good to me!"}}