mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00

fix: Don't show type mismatches for `{unknown}` to non-`{unknown}` mismatches Fixes https://github.com/rust-lang/rust-analyzer/issues/15704 Basically we zip the two types, inspecting their substitutions if the constructors are the same, if we encounter a zip step with an `{unknown}` on one side and a non-`{unknown}` on the other we error out and discard the diagnostic. Otherwise we keep it.