about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-29 16:10:20 +0000
committerGitHub <noreply@github.com>2022-03-29 16:10:20 +0000
commit9eb7553d5ab7cd512b7edf8d8a30b191be0dc761 (patch)
tree816fd2ec86cf2666dcd9e46aa12efca10f2a9bba /src/test/codegen/src-hash-algorithm
parent89d495eb306544ecb1c3e9471725cefb4c87d203 (diff)
parent0c4bdd2f32d212158cf831720d5379de9907f0a6 (diff)
downloadrust-9eb7553d5ab7cd512b7edf8d8a30b191be0dc761.tar.gz
rust-9eb7553d5ab7cd512b7edf8d8a30b191be0dc761.zip
Merge #11842
11842: Fix duplicate type mismatches with blocks r=flodiebold a=flodiebold

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.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions