mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
internal: Record mismatches of pattern types.
This commit is contained in:
parent
49a5d6a8d4
commit
472317c008
6 changed files with 93 additions and 11 deletions
|
@ -211,7 +211,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
|
||||
// FIXME: Due to shortcomings in the current type system implementation, only emit this
|
||||
// diagnostic if there are no type mismatches in the containing function.
|
||||
if self.infer.type_mismatches.iter().next().is_some() {
|
||||
if self.infer.expr_type_mismatches().next().is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue