{"action":"closed","number":22609,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/22609","id":29745395,"html_url":"https://github.com/rust-lang/rust/pull/22609","diff_url":"https://github.com/rust-lang/rust/pull/22609.diff","patch_url":"https://github.com/rust-lang/rust/pull/22609.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/22609","number":22609,"state":"closed","locked":false,"title":"Reworked guessing-game to use the random number crate found at crates.io...","user":{"login":"jxcl","id":108500,"avatar_url":"https://avatars.githubusercontent.com/u/108500?v=3","gravatar_id":"","url":"https://api.github.com/users/jxcl","html_url":"https://github.com/jxcl","followers_url":"https://api.github.com/users/jxcl/followers","following_url":"https://api.github.com/users/jxcl/following{/other_user}","gists_url":"https://api.github.com/users/jxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/jxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxcl/subscriptions","organizations_url":"https://api.github.com/users/jxcl/orgs","repos_url":"https://api.github.com/users/jxcl/repos","events_url":"https://api.github.com/users/jxcl/events{/privacy}","received_events_url":"https://api.github.com/users/jxcl/received_events","type":"User","site_admin":false},"body":"r? @steveklabnik\r\n\r\nFixes issue #22518.\r\n\r\nNotes:\r\n- Removed discussion of standard library from guessing game in the context of\r\n  std::rand because rand is no longer part of the standard library. Maybe it\r\n  can be put back in in the discussion of I/O?\r\n\r\n- The compiler is now able to infer the return type of rand::random() without\r\n  any type annotations.\r\n  `let secret_number = (rand::random() % 100) + 1; // secret_number: i32`","created_at":"2015-02-21T01:18:59Z","updated_at":"2015-02-21T01:53:07Z","closed_at":"2015-02-21T01:53:07Z","merged_at":null,"merge_commit_sha":"f5e8cf1941fbe07e55ccb7d920787f8223a77a71","assignee":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rust/pulls/22609/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/22609/comments","review_comment_url":"https://api.github.com/repos/rust-lang/rust/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/22609/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/79b907b0d3cfff0b12dbe1842f5ecec0e80a956c","head":{"label":"jxcl:master","ref":"master","sha":"79b907b0d3cfff0b12dbe1842f5ecec0e80a956c","user":{"login":"jxcl","id":108500,"avatar_url":"https://avatars.githubusercontent.com/u/108500?v=3","gravatar_id":"","url":"https://api.github.com/users/jxcl","html_url":"https://github.com/jxcl","followers_url":"https://api.github.com/users/jxcl/followers","following_url":"https://api.github.com/users/jxcl/following{/other_user}","gists_url":"https://api.github.com/users/jxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/jxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxcl/subscriptions","organizations_url":"https://api.github.com/users/jxcl/orgs","repos_url":"https://api.github.com/users/jxcl/repos","events_url":"https://api.github.com/users/jxcl/events{/privacy}","received_events_url":"https://api.github.com/users/jxcl/received_events","type":"User","site_admin":false},"repo":{"id":30837460,"name":"rust","full_name":"jxcl/rust","owner":{"login":"jxcl","id":108500,"avatar_url":"https://avatars.githubusercontent.com/u/108500?v=3","gravatar_id":"","url":"https://api.github.com/users/jxcl","html_url":"https://github.com/jxcl","followers_url":"https://api.github.com/users/jxcl/followers","following_url":"https://api.github.com/users/jxcl/following{/other_user}","gists_url":"https://api.github.com/users/jxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/jxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxcl/subscriptions","organizations_url":"https://api.github.com/users/jxcl/orgs","repos_url":"https://api.github.com/users/jxcl/repos","events_url":"https://api.github.com/users/jxcl/events{/privacy}","received_events_url":"https://api.github.com/users/jxcl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jxcl/rust","description":"a safe, concurrent, practical language","fork":true,"url":"https://api.github.com/repos/jxcl/rust","forks_url":"https://api.github.com/repos/jxcl/rust/forks","keys_url":"https://api.github.com/repos/jxcl/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jxcl/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jxcl/rust/teams","hooks_url":"https://api.github.com/repos/jxcl/rust/hooks","issue_events_url":"https://api.github.com/repos/jxcl/rust/issues/events{/number}","events_url":"https://api.github.com/repos/jxcl/rust/events","assignees_url":"https://api.github.com/repos/jxcl/rust/assignees{/user}","branches_url":"https://api.github.com/repos/jxcl/rust/branches{/branch}","tags_url":"https://api.github.com/repos/jxcl/rust/tags","blobs_url":"https://api.github.com/repos/jxcl/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jxcl/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jxcl/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/jxcl/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jxcl/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/jxcl/rust/languages","stargazers_url":"https://api.github.com/repos/jxcl/rust/stargazers","contributors_url":"https://api.github.com/repos/jxcl/rust/contributors","subscribers_url":"https://api.github.com/repos/jxcl/rust/subscribers","subscription_url":"https://api.github.com/repos/jxcl/rust/subscription","commits_url":"https://api.github.com/repos/jxcl/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/jxcl/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/jxcl/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/jxcl/rust/issues/comments/{number}","contents_url":"https://api.github.com/repos/jxcl/rust/contents/{+path}","compare_url":"https://api.github.com/repos/jxcl/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jxcl/rust/merges","archive_url":"https://api.github.com/repos/jxcl/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jxcl/rust/downloads","issues_url":"https://api.github.com/repos/jxcl/rust/issues{/number}","pulls_url":"https://api.github.com/repos/jxcl/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/jxcl/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/jxcl/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jxcl/rust/labels{/name}","releases_url":"https://api.github.com/repos/jxcl/rust/releases{/id}","created_at":"2015-02-15T18:43:34Z","updated_at":"2015-02-21T01:51:25Z","pushed_at":"2015-02-21T01:51:25Z","git_url":"git://github.com/jxcl/rust.git","ssh_url":"git@github.com:jxcl/rust.git","clone_url":"https://github.com/jxcl/rust.git","svn_url":"https://github.com/jxcl/rust","homepage":"http://www.rust-lang.org","size":234209,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"522d09dfecbeca1595f25ac58c6d0178bbd21d7d","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":724712,"name":"rust","full_name":"rust-lang/rust","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/rust","description":"a safe, concurrent, practical language","fork":false,"url":"https://api.github.com/repos/rust-lang/rust","forks_url":"https://api.github.com/repos/rust-lang/rust/forks","keys_url":"https://api.github.com/repos/rust-lang/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/rust/teams","hooks_url":"https://api.github.com/repos/rust-lang/rust/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/rust/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/rust/events","assignees_url":"https://api.github.com/repos/rust-lang/rust/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/rust/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/rust/tags","blobs_url":"https://api.github.com/repos/rust-lang/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/rust/languages","stargazers_url":"https://api.github.com/repos/rust-lang/rust/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/rust/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/rust/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/rust/subscription","commits_url":"https://api.github.com/repos/rust-lang/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/rust/issues/comments/{number}","contents_url":"https://api.github.com/repos/rust-lang/rust/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/rust/merges","archive_url":"https://api.github.com/repos/rust-lang/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/rust/downloads","issues_url":"https://api.github.com/repos/rust-lang/rust/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/rust/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/rust/releases{/id}","created_at":"2010-06-16T20:39:03Z","updated_at":"2015-02-21T01:30:41Z","pushed_at":"2015-02-21T01:43:00Z","git_url":"git://github.com/rust-lang/rust.git","ssh_url":"git@github.com:rust-lang/rust.git","clone_url":"https://github.com/rust-lang/rust.git","svn_url":"https://github.com/rust-lang/rust","homepage":"http://www.rust-lang.org","size":486515,"stargazers_count":9466,"watchers_count":9466,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1816,"mirror_url":null,"open_issues_count":1953,"forks":1816,"open_issues":1953,"watchers":9466,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/22609"},"html":{"href":"https://github.com/rust-lang/rust/pull/22609"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/22609"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/22609/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/22609/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/22609/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/79b907b0d3cfff0b12dbe1842f5ecec0e80a956c"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":1,"review_comments":0,"commits":2,"additions":64,"deletions":40,"changed_files":2}}