diff options
author | Jonas Schievink <[email protected]> | 2020-10-23 18:27:04 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-10-23 18:27:04 +0100 |
commit | 93dc6f511bedb7c18319bbf3efe47a7db4b2aa53 (patch) | |
tree | c12c45372521a19b24c749e41f7472906afff037 /crates/hir | |
parent | dd8a75b2cf46a967b3449652fe17c19a8fcc4e41 (diff) |
Diagnose #[cfg]s in bodies
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/code_model.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs index 7f169ccd2..864f9c0c8 100644 --- a/crates/hir/src/code_model.rs +++ b/crates/hir/src/code_model.rs | |||
@@ -781,6 +781,7 @@ impl Function { | |||
781 | } | 781 | } |
782 | 782 | ||
783 | pub fn diagnostics(self, db: &dyn HirDatabase, sink: &mut DiagnosticSink) { | 783 | pub fn diagnostics(self, db: &dyn HirDatabase, sink: &mut DiagnosticSink) { |
784 | hir_def::diagnostics::validate_body(db.upcast(), self.id.into(), sink); | ||
784 | hir_ty::diagnostics::validate_module_item(db, self.id.into(), sink); | 785 | hir_ty::diagnostics::validate_module_item(db, self.id.into(), sink); |
785 | hir_ty::diagnostics::validate_body(db, self.id.into(), sink); | 786 | hir_ty::diagnostics::validate_body(db, self.id.into(), sink); |
786 | } | 787 | } |