aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/imp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/imp.rs')
-rw-r--r--crates/ra_analysis/src/imp.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 40996bfd7..a547c5a20 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -3,7 +3,7 @@ use std::{
3 sync::Arc, 3 sync::Arc,
4}; 4};
5 5
6use ra_editor::{self, find_node_at_offset, FileSymbol, LineIndex, LocalEdit}; 6use ra_editor::{self, find_node_at_offset, FileSymbol, LineIndex, LocalEdit, Severity};
7use ra_syntax::{ 7use ra_syntax::{
8 ast::{self, ArgListOwner, Expr, NameOwner, FnDef}, 8 ast::{self, ArgListOwner, Expr, NameOwner, FnDef},
9 algo::find_covering_node, 9 algo::find_covering_node,
@@ -365,6 +365,7 @@ impl AnalysisImpl {
365 .map(|d| Diagnostic { 365 .map(|d| Diagnostic {
366 range: d.range, 366 range: d.range,
367 message: d.msg, 367 message: d.msg,
368 severity: d.severity,
368 fix: None, 369 fix: None,
369 }) 370 })
370 .collect::<Vec<_>>(); 371 .collect::<Vec<_>>();
@@ -386,6 +387,7 @@ impl AnalysisImpl {
386 Diagnostic { 387 Diagnostic {
387 range: name_node.range(), 388 range: name_node.range(),
388 message: "unresolved module".to_string(), 389 message: "unresolved module".to_string(),
390 severity: Severity::Error,
389 fix: Some(fix), 391 fix: Some(fix),
390 } 392 }
391 } 393 }
@@ -408,6 +410,7 @@ impl AnalysisImpl {
408 Diagnostic { 410 Diagnostic {
409 range: name_node.range(), 411 range: name_node.range(),
410 message: "can't declare module at this location".to_string(), 412 message: "can't declare module at this location".to_string(),
413 severity: Severity::Error,
411 fix: Some(fix), 414 fix: Some(fix),
412 } 415 }
413 } 416 }