]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #63337 - estebank:break-ee0308, r=Centril
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 10 Aug 2019 06:13:17 +0000 (08:13 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Aug 2019 06:13:17 +0000 (08:13 +0200)
commit52f9e80e5f4d67d8af4831a9e27a557b30b81761
tree1bc4ff583c55ca814be7555426ed115adc51b08e
parenteb44561600a3f2edceae13d1395ca84d7a23dc17
parent45a5bc7619d19e58cbb1497f571e2ba987d1d53b
Rollup merge of #63337 - estebank:break-ee0308, r=Centril

Tweak mismatched types error

- Change expected/found for type mismatches in `break`
- Be more accurate when talking about diverging match arms
- Tweak wording of function without a return value
- Suggest calling bare functions when their return value can be coerced to the expected type
- Give more parsing errors when encountering `foo(_, _, _)`

Fix #51767, fix #62677, fix #63136, cc #37384, cc #35241, cc #51669.