We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260a380 commit 8f8f440Copy full SHA for 8f8f440
src/tools/rust-analyzer/crates/hir-ty/src/diagnostics/expr.rs
@@ -196,6 +196,9 @@ impl ExprValidator {
196
let Some(pat_ty) = self.infer.type_of_pat.get(arm.pat) else {
197
return;
198
};
199
+ if pat_ty.contains_unknown() {
200
+ return;
201
+ }
202
203
// We only include patterns whose type matches the type
204
// of the scrutinee expression. If we had an InvalidMatchArmPattern
0 commit comments