rust/crates/ide_assists
Florian Diebold 0c4bdd2f32 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.
2022-03-29 18:06:52 +02:00
..
src Fix duplicate type mismatches with blocks 2022-03-29 18:06:52 +02:00
Cargo.toml minor: Bump dependencies 2022-03-22 17:42:24 +01:00