{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/35080","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/35080/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/35080/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/35080/events","html_url":"https://github.com/rust-lang/rust/pull/35080","id":167984831,"number":35080,"title":"Rename _ to {numeric} for unknown numeric types","user":{"login":"jonathandturner","id":547158,"avatar_url":"https://avatars.githubusercontent.com/u/547158?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathandturner","html_url":"https://github.com/jonathandturner","followers_url":"https://api.github.com/users/jonathandturner/followers","following_url":"https://api.github.com/users/jonathandturner/following{/other_user}","gists_url":"https://api.github.com/users/jonathandturner/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathandturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathandturner/subscriptions","organizations_url":"https://api.github.com/users/jonathandturner/orgs","repos_url":"https://api.github.com/users/jonathandturner/repos","events_url":"https://api.github.com/users/jonathandturner/events{/privacy}","received_events_url":"https://api.github.com/users/jonathandturner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":2,"created_at":"2016-07-28T00:05:33Z","updated_at":"2016-07-28T00:07:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/35080","html_url":"https://github.com/rust-lang/rust/pull/35080","diff_url":"https://github.com/rust-lang/rust/pull/35080.diff","patch_url":"https://github.com/rust-lang/rust/pull/35080.patch"},"body":"This PR renames _ to {numeric} for unknown numeric types, to help people parse error messages that have numeric types that haven't been nailed down.\r\n\r\nExample:\r\n```rust\r\nfn main() {\r\n    let x: String = 4;\r\n}\r\n```\r\n\r\nBefore:\r\n```\r\nerror[E0308]: mismatched types\r\n --> quicktest.rs:2:21\r\n  |\r\n2 |     let x: String = 4;\r\n  |                     ^ expected struct `std::string::String`, found integral variable\r\n  |\r\n  = note: expected type `std::string::String`\r\n  = note:    found type `_`\r\n\r\nerror: aborting due to previous error\r\n```\r\n\r\nafter:\r\n```\r\nerror[E0308]: mismatched types\r\n --> quicktest.rs:2:21\r\n  |\r\n2 |     let x: String = 4;\r\n  |                     ^ expected struct `std::string::String`, found integral variable\r\n  |\r\n  = note: expected type `std::string::String`\r\n  = note:    found type `{numeric}`\r\n\r\nerror: aborting due to previous error\r\n```\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/235759326","html_url":"https://github.com/rust-lang/rust/pull/35080#issuecomment-235759326","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/35080","id":235759326,"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":"2016-07-28T00:07:14Z","updated_at":"2016-07-28T00:07:14Z","body":"Keep in mind that integer and floating-point inference variables are different and sometimes it's helpful to tell them apart."}}
{"actor":{"display_login":"eddyb"}}