diff options
| author | Florian Diebold <flodiebold@gmail.com> | 2022-03-29 17:51:11 +0200 |
|---|---|---|
| committer | Florian Diebold <flodiebold@gmail.com> | 2022-03-29 18:06:52 +0200 |
| commit | 0c4bdd2f32d212158cf831720d5379de9907f0a6 (patch) | |
| tree | 816fd2ec86cf2666dcd9e46aa12efca10f2a9bba /src/test/codegen/src-hash-algorithm | |
| parent | 89d495eb306544ecb1c3e9471725cefb4c87d203 (diff) | |
| download | rust-0c4bdd2f32d212158cf831720d5379de9907f0a6.tar.gz rust-0c4bdd2f32d212158cf831720d5379de9907f0a6.zip | |
Fix duplicate type mismatches with blocks
E.g. when there's a type mismatch on the return value of a function. To fix this, we have to return the expected type as the type of the block when there's a mismatch. That meant some IDE code that expected otherwise had to be adapted, in particular the "add return type" assist. For the "wrap in Ok/Some" quickfix, this sadly means it usually can't be applied in all branches of an if expression at the same time anymore, because there's a type mismatch for each branch that has the wrong type.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
