diff options
| author | bors <bors@rust-lang.org> | 2024-02-16 12:01:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-16 12:01:33 +0000 |
| commit | c864953c0f1feeed332c08b8c17192eedbc2535f (patch) | |
| tree | dcf5790896f31761a709bfc194f8cb8688f9f81e /compiler/rustc_parse/src | |
| parent | a01655552df5a4f7ef2db8296d3ad15746faa22c (diff) | |
| parent | fd652ceb73539ebee1fc9ea3166b35c227167b25 (diff) | |
| download | rust-c864953c0f1feeed332c08b8c17192eedbc2535f.tar.gz rust-c864953c0f1feeed332c08b8c17192eedbc2535f.zip | |
Auto merge of #16583 - Veykril:unknown-mismatch, r=Veykril
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.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
