{"push_id":1541853368,"size":5,"distinct_size":5,"ref":"refs/heads/rollup","head":"ed0337ef275a48ef537e7b834cf140c0a4d1367f","before":"6bdcb49112b3ec5593c300109d09d89e5b1f053f","commits":[{"sha":"8579218b273a25ee05386034b2df2c9aee9234c7","author":{"name":"Cengiz Can","email":"0653c61ddd86a5c5d12722f9a04dd3df557cdedc@gmail.com"},"message":"Improve error message for uninferrable types #38812","distinct":true,"url":"https://api.github.com/repos/frewsxcv/rust/commits/8579218b273a25ee05386034b2df2c9aee9234c7"},{"sha":"89ae2caf56577d272be0169aaec68e75dd5bc6af","author":{"name":"Cengiz Can","email":"0653c61ddd86a5c5d12722f9a04dd3df557cdedc@gmail.com"},"message":"Remove extra newlines from expectation files","distinct":true,"url":"https://api.github.com/repos/frewsxcv/rust/commits/89ae2caf56577d272be0169aaec68e75dd5bc6af"},{"sha":"7aff6add92c5f8deea29af2a5aa7335d4e5843a9","author":{"name":"Cengiz Can","email":"0653c61ddd86a5c5d12722f9a04dd3df557cdedc@gmail.com"},"message":"Remove extra note and revert name in message","distinct":true,"url":"https://api.github.com/repos/frewsxcv/rust/commits/7aff6add92c5f8deea29af2a5aa7335d4e5843a9"},{"sha":"3fa28cb206604fddf67a29e7cbd3a8b22da1edc2","author":{"name":"Cengiz Can","email":"0653c61ddd86a5c5d12722f9a04dd3df557cdedc@gmail.com"},"message":"Add a new ui test and update existing ones","distinct":true,"url":"https://api.github.com/repos/frewsxcv/rust/commits/3fa28cb206604fddf67a29e7cbd3a8b22da1edc2"},{"sha":"ed0337ef275a48ef537e7b834cf140c0a4d1367f","author":{"name":"Corey Farwell","email":"b70e762980caa58b92468c07f70f8aed89946b80@rwell.org"},"message":"Rollup merge of #39361 - cengizIO:master, r=arielb1\n\nImprove error message for uninferrable types #38812\n\nHello,\n\nI tried to improve the error message for uninferrable types. The error code is `E0282`.\n\n```rust\n\nerror[E0282]: type annotations needed\n --> /home/cengizIO/issue38812.rs:2:11\n  |\n2 |   let x = vec![];\n  |       -   ^^^^^^ cannot infer type for `T`\n  |       |\n  |       consider giving `x` a type\n  |\n  = note: this error originates in a macro outside of the current crate\n```\n\nand\n\n```rust\n\nerror[E0282]: type annotations needed\n --> /home/cengizIO/issue38812.rs:2:15\n  |\n2 |   let (x,) = (vec![],);\n  |       ----    ^^^^^^ cannot infer type for `T`\n  |       |\n  |       consider giving a type to pattern\n  |\n  = note: this error originates in a macro outside of the current crate\n```\n\nRust compiler now tries to find uninferred `local`s with type `_` and adds them into the error message.\n\nI'm probably wrong on wording that I used. Please feel free to suggest better alternatives.\n\nThanks @nikomatsakis for mentoring 🍺\n\nAny comments/feedback is more than welcome!\n\nThank you","distinct":true,"url":"https://api.github.com/repos/frewsxcv/rust/commits/ed0337ef275a48ef537e7b834cf140c0a4d1367f"}]}
{"actor":{"display_login":"frewsxcv"}}