{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/35435","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/35435/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/35435/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/35435/events","html_url":"https://github.com/rust-lang/rust/issues/35435","id":169765963,"number":35435,"title":"pub_restricted field warning spans include close-paren","user":{"login":"programble","id":166462,"avatar_url":"https://avatars.githubusercontent.com/u/166462?v=3","gravatar_id":"","url":"https://api.github.com/users/programble","html_url":"https://github.com/programble","followers_url":"https://api.github.com/users/programble/followers","following_url":"https://api.github.com/users/programble/following{/other_user}","gists_url":"https://api.github.com/users/programble/gists{/gist_id}","starred_url":"https://api.github.com/users/programble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programble/subscriptions","organizations_url":"https://api.github.com/users/programble/orgs","repos_url":"https://api.github.com/users/programble/repos","events_url":"https://api.github.com/users/programble/events{/privacy}","received_events_url":"https://api.github.com/users/programble/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"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-06T20:52:29Z","updated_at":"2016-08-08T00:07:50Z","closed_at":null,"body":"Warnings on pub_restricted fields produce odd spans including the close-paren:\r\n\r\n###### `src/lib.rs`\r\n\r\n```rust\r\n#![feature(pub_restricted)]\r\npub mod foo;\r\n```\r\n\r\n###### `src/foo.rs`\r\n\r\n```rust\r\npub struct Foo {\r\n    pub(super) bar: u8,\r\n}\r\n```\r\n\r\n###### `cargo build`\r\n\r\n```\r\nwarning: struct field is never used: `bar`, #[warn(dead_code)] on by default\r\n --> src/foo.rs:2:14\r\n  |\r\n2 |     pub(super) bar: u8,\r\n  |              ^^^^^^^^^\r\n```\r\n\r\n###### `rustc --version`\r\n\r\n```\r\nrustc 1.12.0-nightly (b30eff7ba 2016-08-05)\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/238117912","html_url":"https://github.com/rust-lang/rust/issues/35435#issuecomment-238117912","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/35435","id":238117912,"user":{"login":"Aatch","id":342416,"avatar_url":"https://avatars.githubusercontent.com/u/342416?v=3","gravatar_id":"","url":"https://api.github.com/users/Aatch","html_url":"https://github.com/Aatch","followers_url":"https://api.github.com/users/Aatch/followers","following_url":"https://api.github.com/users/Aatch/following{/other_user}","gists_url":"https://api.github.com/users/Aatch/gists{/gist_id}","starred_url":"https://api.github.com/users/Aatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aatch/subscriptions","organizations_url":"https://api.github.com/users/Aatch/orgs","repos_url":"https://api.github.com/users/Aatch/repos","events_url":"https://api.github.com/users/Aatch/events{/privacy}","received_events_url":"https://api.github.com/users/Aatch/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T00:07:50Z","updated_at":"2016-08-08T00:07:50Z","body":"There's most like some code that is still assuming that privacy modifiers are a single token."}}
{"actor":{"display_login":"Aatch"}}