aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/diagnostics.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_ide/src/diagnostics.rs b/crates/ra_ide/src/diagnostics.rs
index 46f8c31c7..d984f58ba 100644
--- a/crates/ra_ide/src/diagnostics.rs
+++ b/crates/ra_ide/src/diagnostics.rs
@@ -127,6 +127,14 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
127 severity: Severity::Error, 127 severity: Severity::Error,
128 fix: missing_struct_field_fix(&sema, file_id, d), 128 fix: missing_struct_field_fix(&sema, file_id, d),
129 }) 129 })
130 })
131 .on::<hir::diagnostics::MismatchedArgCount, _>(|d| {
132 res.borrow_mut().push(Diagnostic {
133 range: sema.diagnostics_range(d).range,
134 message: d.message(),
135 severity: Severity::Error,
136 fix: None,
137 })
130 }); 138 });
131 139
132 if let Some(m) = sema.to_module_def(file_id) { 140 if let Some(m) = sema.to_module_def(file_id) {