aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/diagnostics.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/hir_def/src/diagnostics.rs b/crates/hir_def/src/diagnostics.rs
index 001b3c5db..fcfbbbad3 100644
--- a/crates/hir_def/src/diagnostics.rs
+++ b/crates/hir_def/src/diagnostics.rs
@@ -7,6 +7,9 @@ use syntax::{ast, AstPtr, SyntaxNodePtr};
7 7
8use hir_expand::{HirFileId, InFile}; 8use hir_expand::{HirFileId, InFile};
9 9
10// Diagnostic: unresolved-module
11//
12// This diagnostic is triggered if rust-analyzer is unable to discover referred module.
10#[derive(Debug)] 13#[derive(Debug)]
11pub struct UnresolvedModule { 14pub struct UnresolvedModule {
12 pub file: HirFileId, 15 pub file: HirFileId,
@@ -29,6 +32,9 @@ impl Diagnostic for UnresolvedModule {
29 } 32 }
30} 33}
31 34
35// Diagnostic: unresolved-extern-crate
36//
37// This diagnostic is triggered if rust-analyzer is unable to discover referred extern crate.
32#[derive(Debug)] 38#[derive(Debug)]
33pub struct UnresolvedExternCrate { 39pub struct UnresolvedExternCrate {
34 pub file: HirFileId, 40 pub file: HirFileId,
@@ -50,6 +56,9 @@ impl Diagnostic for UnresolvedExternCrate {
50 } 56 }
51} 57}
52 58
59// Diagnostic: unresolved-import
60//
61// This diagnostic is triggered if rust-analyzer is unable to discover imported module.
53#[derive(Debug)] 62#[derive(Debug)]
54pub struct UnresolvedImport { 63pub struct UnresolvedImport {
55 pub file: HirFileId, 64 pub file: HirFileId,