{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/34713","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/34713/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/34713/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/34713/events","html_url":"https://github.com/rust-lang/rust/issues/34713","id":164425675,"number":34713,"title":"Change struct rendering to include a case for all fields being omitted","user":{"login":"coder543","id":726063,"avatar_url":"https://avatars.githubusercontent.com/u/726063?v=3","gravatar_id":"","url":"https://api.github.com/users/coder543","html_url":"https://github.com/coder543","followers_url":"https://api.github.com/users/coder543/followers","following_url":"https://api.github.com/users/coder543/following{/other_user}","gists_url":"https://api.github.com/users/coder543/gists{/gist_id}","starred_url":"https://api.github.com/users/coder543/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coder543/subscriptions","organizations_url":"https://api.github.com/users/coder543/orgs","repos_url":"https://api.github.com/users/coder543/repos","events_url":"https://api.github.com/users/coder543/events{/privacy}","received_events_url":"https://api.github.com/users/coder543/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-enhancement","name":"I-enhancement","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-07T22:58:41Z","updated_at":"2016-07-18T06:26:54Z","closed_at":null,"body":"The [Path](https://doc.rust-lang.org/std/path/struct.Path.html) documentation provides a good case-in-point. The struct for `Path` is being rendered as \r\n\r\n```\r\npub struct Path {\r\n    // some fields omitted\r\n}\r\n```\r\n\r\nwhen it could be rendered as\r\n\r\n```\r\npub struct Path {\r\n    // all fields omitted\r\n}\r\n```\r\n\r\nsince there are no fields which have not been emitted. It just feels like an understatement when it says \"some\" fields have been omitted, and there are no fields being shown at all."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/233242522","html_url":"https://github.com/rust-lang/rust/issues/34713#issuecomment-233242522","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/34713","id":233242522,"user":{"login":"cybergeek94","id":3198595,"avatar_url":"https://avatars.githubusercontent.com/u/3198595?v=3","gravatar_id":"","url":"https://api.github.com/users/cybergeek94","html_url":"https://github.com/cybergeek94","followers_url":"https://api.github.com/users/cybergeek94/followers","following_url":"https://api.github.com/users/cybergeek94/following{/other_user}","gists_url":"https://api.github.com/users/cybergeek94/gists{/gist_id}","starred_url":"https://api.github.com/users/cybergeek94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybergeek94/subscriptions","organizations_url":"https://api.github.com/users/cybergeek94/orgs","repos_url":"https://api.github.com/users/cybergeek94/repos","events_url":"https://api.github.com/users/cybergeek94/events{/privacy}","received_events_url":"https://api.github.com/users/cybergeek94/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T06:26:54Z","updated_at":"2016-07-18T06:26:54Z","body":"@bugaevc has a good point, though one (weak) counterpoint is `pub` fields annotated with `#[doc(hidden)]`, which Rustdoc will treat as private but the compiler will still allow access to (necessary for the implementation details of some macros). "}}
{"actor":{"display_login":"cybergeek94"}}