about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2022-03-29 17:51:11 +0200
committerFlorian Diebold <flodiebold@gmail.com>2022-03-29 18:06:52 +0200
commit0c4bdd2f32d212158cf831720d5379de9907f0a6 (patch)
tree816fd2ec86cf2666dcd9e46aa12efca10f2a9bba /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent89d495eb306544ecb1c3e9471725cefb4c87d203 (diff)
downloadrust-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/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions