diff options
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/diagnostics.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ide/src/diagnostics.rs b/crates/ide/src/diagnostics.rs index 3df73ed4f..8b4ceb9a1 100644 --- a/crates/ide/src/diagnostics.rs +++ b/crates/ide/src/diagnostics.rs | |||
@@ -142,6 +142,13 @@ pub(crate) fn diagnostics( | |||
142 | .with_code(Some(d.code())), | 142 | .with_code(Some(d.code())), |
143 | ); | 143 | ); |
144 | }) | 144 | }) |
145 | .on::<hir::diagnostics::UnresolvedProcMacro, _>(|d| { | ||
146 | // FIXME: it would be nice to tell the user whether proc macros are currently disabled | ||
147 | res.borrow_mut().push( | ||
148 | Diagnostic::hint(sema.diagnostics_display_range(d).range, d.message()) | ||
149 | .with_code(Some(d.code())), | ||
150 | ); | ||
151 | }) | ||
145 | // Only collect experimental diagnostics when they're enabled. | 152 | // Only collect experimental diagnostics when they're enabled. |
146 | .filter(|diag| !(diag.is_experimental() && config.disable_experimental)) | 153 | .filter(|diag| !(diag.is_experimental() && config.disable_experimental)) |
147 | .filter(|diag| !config.disabled.contains(diag.code().as_str())); | 154 | .filter(|diag| !config.disabled.contains(diag.code().as_str())); |