{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23353","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23353/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23353/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23353/events","html_url":"https://github.com/rust-lang/rust/pull/23353","id":61318908,"number":23353,"title":"std: Stabilize portions of `std::os::$platform`","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},"labels":[],"state":"open","locked":false,"assignee":{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-03-14T00:40:25Z","updated_at":"2015-03-14T13:24:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/23353","html_url":"https://github.com/rust-lang/rust/pull/23353","diff_url":"https://github.com/rust-lang/rust/pull/23353.diff","patch_url":"https://github.com/rust-lang/rust/pull/23353.patch"},"body":"This commit starts to organize the `std::os::$platform` modules and in the\r\nprocess stabilizes some of the functionality contained within. The organization\r\nof these modules will reflect the organization of the standard library itself\r\nwith extension traits for primitives in the same corresponding module.\r\n\r\nThe OS-specific modules will grow more functionality over time including\r\nconcrete types that are not extending functionality of other structures, and\r\nthese will either go into the closest module in `std::os::$platform` or they\r\nwill grow a new module in the hierarchy.\r\n\r\nThe following items are now stable:\r\n\r\n* `os::{unix, windows}`\r\n* `unix::ffi`\r\n* `unix::ffi::OsStrExt`\r\n* `unix::ffi::OsStrExt::{from_bytes, as_bytes, to_cstring}`\r\n* `unix::ffi::OsString`\r\n* `unix::ffi::OsStringExt::{from_vec, into_vec}`\r\n* `unix::process`\r\n* `unix::process::CommandExt`\r\n* `unix::process::CommandExt::{uid, gid}`\r\n* `unix::process::ExitStatusExt`\r\n* `unix::process::ExitStatusExt::signal`\r\n* `unix::prelude`\r\n* `windows::ffi`\r\n* `windows::ffi::OsStringExt`\r\n* `windows::ffi::OsStringExt::from_wide`\r\n* `windows::ffi::OsStrExt`\r\n* `windows::ffi::OsStrExt::encode_wide`\r\n* `windows::prelude`\r\n\r\nThe following items remain unstable:\r\n\r\n* `unix::io`\r\n* `unix::io::{Fd, AsRawFd}`\r\n* `unix::fs::{PermissionsExt, OpenOptionsExt}`\r\n* `windows::io`\r\n* `windows::io::{Handle, AsRawHandle}`\r\n* `windows::io::{Socket, AsRawSocket}`\r\n* `windows::fs`\r\n* `windows::fs::OpenOptionsExt`\r\n\r\nDue to the reorgnization of the platform extension modules, this commit is a\r\nbreaking change. Most imports can be fixed by adding the relevant libstd module\r\nin the `use` path (such as `ffi` or `fs`).\r\n\r\n[breaking-change]"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/80465357","html_url":"https://github.com/rust-lang/rust/pull/23353#issuecomment-80465357","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/23353","id":80465357,"user":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T13:24:37Z","updated_at":"2015-03-14T13:24:37Z","body":"```\r\n/Users/rustbuild/src/rust-buildbot/slave/auto-mac-64-opt/build/src/libstd/os.rs:1708:17: 1708:34 error: unresolved import `os::unix::AsRawFd`. There is no `AsRawFd` in `sys::ext`\r\n/Users/rustbuild/src/rust-buildbot/slave/auto-mac-64-opt/build/src/libstd/os.rs:1708             use os::unix::AsRawFd;\r\n                                                                                                     ^~~~~~~~~~~~~~~~~\r\n/Users/rustbuild/src/rust-buildbot/slave/auto-mac-64-opt/build/src/libstd/process.rs:576:13: 576:36 error: unresolved import `os::unix::ExitStatusExt`. There is no `ExitStatusExt` in `sys::ext`\r\n/Users/rustbuild/src/rust-buildbot/slave/auto-mac-64-opt/build/src/libstd/process.rs:576         use os::unix::ExitStatusExt;\r\n                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~\r\nerror: aborting due to 2 previous errors\r\nmake: *** [x86_64-apple-darwin/stage2/test/stdtest-x86_64-apple-darwin] Error 101\r\n```"}}