rust/crates/ide_diagnostics/src
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
..
handlers Fix duplicate type mismatches with blocks 2022-03-29 18:06:52 +02:00
tests internal: overhaul code generation 2021-07-03 22:11:03 +03:00
lib.rs Clean up commented-out lines 2022-03-21 19:16:58 +01:00
tests.rs Fix duplicate type mismatches with blocks 2022-03-29 18:06:52 +02:00