Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/lib.rs')
| -rw-r--r-- | crates/hir/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index f24edebfd0..2264bbbfd7 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -1312,7 +1312,7 @@ impl DefWithBody { ); } } - BodyValidationDiagnostic::MissingMatchArms { match_expr } => { + BodyValidationDiagnostic::MissingMatchArms { match_expr, uncovered_patterns } => { match source_map.expr_syntax(match_expr) { Ok(source_ptr) => { let root = source_ptr.file_syntax(db.upcast()); @@ -1324,6 +1324,7 @@ impl DefWithBody { MissingMatchArms { file: source_ptr.file_id, match_expr: AstPtr::new(&match_expr), + uncovered_patterns, } .into(), ); |