aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-17 12:06:02 +0100
committerAleksey Kladov <[email protected]>2020-04-17 12:56:38 +0100
commita8196ffe8466aa60dec56e77c2da717793c0debe (patch)
tree03869b8175d5325de1baa95e0a385d2823b5946e /crates/ra_hir_expand/src
parent302bf97bbf1855e3c7def9ab4f9f3d338be5e3b7 (diff)
Correctly highlight ranges of diagnostics from macros
closes #2799
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r--crates/ra_hir_expand/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_expand/src/diagnostics.rs b/crates/ra_hir_expand/src/diagnostics.rs
index 714e700f7..813fbf0e2 100644
--- a/crates/ra_hir_expand/src/diagnostics.rs
+++ b/crates/ra_hir_expand/src/diagnostics.rs
@@ -22,7 +22,7 @@ use crate::{db::AstDatabase, InFile};
22 22
23pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static { 23pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static {
24 fn message(&self) -> String; 24 fn message(&self) -> String;
25 fn highlight_range(&self) -> TextRange; 25 fn highlight_range(&self) -> InFile<TextRange>;
26 fn source(&self) -> InFile<SyntaxNodePtr>; 26 fn source(&self) -> InFile<SyntaxNodePtr>;
27 fn as_any(&self) -> &(dyn Any + Send + 'static); 27 fn as_any(&self) -> &(dyn Any + Send + 'static);
28} 28}