{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/29833","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/29833/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/29833/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/29833/events","html_url":"https://github.com/rust-lang/rust/pull/29833","id":116937935,"number":29833,"title":"Add -Z binding-stats","user":{"login":"sanxiyn","id":45249,"avatar_url":"https://avatars.githubusercontent.com/u/45249?v=3","gravatar_id":"","url":"https://api.github.com/users/sanxiyn","html_url":"https://github.com/sanxiyn","followers_url":"https://api.github.com/users/sanxiyn/followers","following_url":"https://api.github.com/users/sanxiyn/following{/other_user}","gists_url":"https://api.github.com/users/sanxiyn/gists{/gist_id}","starred_url":"https://api.github.com/users/sanxiyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanxiyn/subscriptions","organizations_url":"https://api.github.com/users/sanxiyn/orgs","repos_url":"https://api.github.com/users/sanxiyn/repos","events_url":"https://api.github.com/users/sanxiyn/events{/privacy}","received_events_url":"https://api.github.com/users/sanxiyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-14T17:05:05Z","updated_at":"2015-11-15T20:55:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/29833","html_url":"https://github.com/rust-lang/rust/pull/29833","diff_url":"https://github.com/rust-lang/rust/pull/29833.diff","patch_url":"https://github.com/rust-lang/rust/pull/29833.patch"},"body":"For some reasons, people like to discuss the number of immutable and mutable bindings in Rust codes: [example 1](https://www.reddit.com/r/rust/comments/3sf823/observations_bindings_immutable_by_default/), [example 2](https://www.reddit.com/r/rust/comments/3srvz0/ideas_about_features_which_may_be_useful_for_rust/). People's first impression is that mutable bindings are common; then invariably, experienced Rust users report that they are not. Numbers like 5%, 10%, 20% are thrown around. Since the compiler knows the answer, let's make it available.\r\n\r\nRunning this on core, std, syntax reports that 20%, 22%, 17% of local bindings are mutable, confirming the folklore."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/156852484","html_url":"https://github.com/rust-lang/rust/pull/29833#issuecomment-156852484","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/29833","id":156852484,"user":{"login":"eddyb","id":77424,"avatar_url":"https://avatars.githubusercontent.com/u/77424?v=3","gravatar_id":"","url":"https://api.github.com/users/eddyb","html_url":"https://github.com/eddyb","followers_url":"https://api.github.com/users/eddyb/followers","following_url":"https://api.github.com/users/eddyb/following{/other_user}","gists_url":"https://api.github.com/users/eddyb/gists{/gist_id}","starred_url":"https://api.github.com/users/eddyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddyb/subscriptions","organizations_url":"https://api.github.com/users/eddyb/orgs","repos_url":"https://api.github.com/users/eddyb/repos","events_url":"https://api.github.com/users/eddyb/events{/privacy}","received_events_url":"https://api.github.com/users/eddyb/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T20:55:10Z","updated_at":"2015-11-15T20:55:10Z","body":"I think we could handle statistics with a lint, albeit it might be tricky to store the data."}}