diff options
author | Igor Aleksanov <[email protected]> | 2020-08-07 11:18:47 +0100 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-08-07 11:18:47 +0100 |
commit | c463d217a1e001abe6a812f309d93527e28a70c6 (patch) | |
tree | e72e74fe56971568b4b92ee4c5a38ea0bba3c844 /crates/ra_hir_def/src/diagnostics.rs | |
parent | f1d507270c7d915ef0177feca7b6745d95169ac8 (diff) |
Add names for diagnostics and add a possibility to disable them
Diffstat (limited to 'crates/ra_hir_def/src/diagnostics.rs')
-rw-r--r-- | crates/ra_hir_def/src/diagnostics.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/diagnostics.rs b/crates/ra_hir_def/src/diagnostics.rs index 30db48f86..1d28c24e8 100644 --- a/crates/ra_hir_def/src/diagnostics.rs +++ b/crates/ra_hir_def/src/diagnostics.rs | |||
@@ -15,6 +15,9 @@ pub struct UnresolvedModule { | |||
15 | } | 15 | } |
16 | 16 | ||
17 | impl Diagnostic for UnresolvedModule { | 17 | impl Diagnostic for UnresolvedModule { |
18 | fn name(&self) -> String { | ||
19 | "unresolved-module".to_string() | ||
20 | } | ||
18 | fn message(&self) -> String { | 21 | fn message(&self) -> String { |
19 | "unresolved module".to_string() | 22 | "unresolved module".to_string() |
20 | } | 23 | } |