diff options
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/diagnostics.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_ide/src/diagnostics.rs b/crates/ra_ide/src/diagnostics.rs index 00f6bb186..e69e9b4ec 100644 --- a/crates/ra_ide/src/diagnostics.rs +++ b/crates/ra_ide/src/diagnostics.rs | |||
@@ -99,14 +99,6 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic> | |||
99 | fix, | 99 | fix, |
100 | }) | 100 | }) |
101 | }) | 101 | }) |
102 | .on::<hir::diagnostics::MissingMatchArms, _>(|d| { | ||
103 | res.borrow_mut().push(Diagnostic { | ||
104 | range: sema.diagnostics_range(d).range, | ||
105 | message: d.message(), | ||
106 | severity: Severity::Error, | ||
107 | fix: None, | ||
108 | }) | ||
109 | }) | ||
110 | .on::<hir::diagnostics::MissingOkInTailExpr, _>(|d| { | 102 | .on::<hir::diagnostics::MissingOkInTailExpr, _>(|d| { |
111 | let node = d.ast(db); | 103 | let node = d.ast(db); |
112 | let replacement = format!("Ok({})", node.syntax()); | 104 | let replacement = format!("Ok({})", node.syntax()); |