{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/21835","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/21835/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/21835/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/21835/events","html_url":"https://github.com/rust-lang/rust/pull/21835","id":56155736,"number":21835,"title":"std: Add `io` module again","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":17,"created_at":"2015-02-01T07:39:54Z","updated_at":"2015-02-04T00:49:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/21835","html_url":"https://github.com/rust-lang/rust/pull/21835","diff_url":"https://github.com/rust-lang/rust/pull/21835.diff","patch_url":"https://github.com/rust-lang/rust/pull/21835.patch"},"body":"This commit is an implementation of [RFC 576][rfc] which adds back the `std::io`\r\nmodule to the standard library. No functionality in `std::old_io` has been\r\ndeprecated just yet, and the new `std::io` module is behind the same `io`\r\nfeature gate.\r\n\r\n[rfc]: https://github.com/rust-lang/rfcs/pull/576\r\n\r\nA good bit of functionality was copied over from `std::old_io`, but many tweaks\r\nwere required for the new method signatures. Behavior such as precisely when\r\nbuffered objects call to the underlying object may have been tweaked slightly in\r\nthe transition. All implementations were audited to use composition wherever\r\npossible. For example the custom `pos` and `cap` cursors in `BufReader` were\r\nremoved in favor of just using `Cursor<Vec<u8>>`.\r\n\r\nA few liberties were taken during this implementation which were not explicitly\r\nspelled out in the RFC:\r\n\r\n* The old `LineBufferedWriter` is now named `LineWriter`\r\n* The internal representation of `Error` now favors OS error codes (a\r\n  0-allocation path) and contains a `Box` for extra semantic data.\r\n* The io prelude currently reexports `Seek` as `NewSeek` to prevent conflicts\r\n  with the real prelude reexport of `old_io::Seek`\r\n* The `chars` method was moved from `BufReadExt` to `ReadExt`.\r\n* The `chars` iterator returns a custom error with a variant that explains that\r\n  the data was not valid UTF-8."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/72769044","html_url":"https://github.com/rust-lang/rust/pull/21835#issuecomment-72769044","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/21835","id":72769044,"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-02-04T00:49:37Z","updated_at":"2015-02-04T00:49:37Z","body":"@bors: retry"}}