{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/31069","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/31069/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/31069/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/31069/events","html_url":"https://github.com/rust-lang/rust/pull/31069","id":127847941,"number":31069,"title":"Add File::try_clone","user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/T-libs","name":"T-libs","color":"bfd4f2"}],"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":12,"created_at":"2016-01-21T05:25:50Z","updated_at":"2016-01-22T10:05:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/31069","html_url":"https://github.com/rust-lang/rust/pull/31069","diff_url":"https://github.com/rust-lang/rust/pull/31069.diff","patch_url":"https://github.com/rust-lang/rust/pull/31069.patch"},"body":"I have it set as stable right now under the rationale that it's extending an existing, stable API to another type in the \"obvious\" way.\r\n\r\nr? @alexcrichton \r\n\r\ncc @reem"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/173867365","html_url":"https://github.com/rust-lang/rust/pull/31069#issuecomment-173867365","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/31069","id":173867365,"user":{"login":"retep998","id":666308,"avatar_url":"https://avatars.githubusercontent.com/u/666308?v=3","gravatar_id":"","url":"https://api.github.com/users/retep998","html_url":"https://github.com/retep998","followers_url":"https://api.github.com/users/retep998/followers","following_url":"https://api.github.com/users/retep998/following{/other_user}","gists_url":"https://api.github.com/users/retep998/gists{/gist_id}","starred_url":"https://api.github.com/users/retep998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retep998/subscriptions","organizations_url":"https://api.github.com/users/retep998/orgs","repos_url":"https://api.github.com/users/retep998/repos","events_url":"https://api.github.com/users/retep998/events{/privacy}","received_events_url":"https://api.github.com/users/retep998/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T10:05:08Z","updated_at":"2016-01-22T10:05:08Z","body":"Even if you duplicate a `File` both `File`s still own their handles, the handles just happen to have some shared state. Also, as far as I can tell there is no way to get the reference count of a handle on Windows."}}