about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-16 12:01:33 +0000
committerbors <bors@rust-lang.org>2024-02-16 12:01:33 +0000
commitc864953c0f1feeed332c08b8c17192eedbc2535f (patch)
treedcf5790896f31761a709bfc194f8cb8688f9f81e /compiler/rustc_parse/src
parenta01655552df5a4f7ef2db8296d3ad15746faa22c (diff)
parentfd652ceb73539ebee1fc9ea3166b35c227167b25 (diff)
downloadrust-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