aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand/src
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-08-11 15:15:11 +0100
committerKirill Bulatov <[email protected]>2020-08-11 15:52:05 +0100
commitdb12ccee96bf37367b39ad99638d06da7123c088 (patch)
tree6ade1ef7533d2ac235ccf507c48bde6c41289917 /crates/ra_hir_expand/src
parent188ec3459e795732ad097758f7bf6b6b95bdbf5e (diff)
Better naming and docs
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r--crates/ra_hir_expand/src/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_expand/src/diagnostics.rs b/crates/ra_hir_expand/src/diagnostics.rs
index cc7dc3af2..b138500e7 100644
--- a/crates/ra_hir_expand/src/diagnostics.rs
+++ b/crates/ra_hir_expand/src/diagnostics.rs
@@ -22,8 +22,8 @@ use crate::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 /// A presentation source of the diagnostics, to use in highlighting and similar actions 25 /// Used in highlighting and related purposes
26 fn presentation(&self) -> InFile<SyntaxNodePtr>; 26 fn display_source(&self) -> InFile<SyntaxNodePtr>;
27 fn as_any(&self) -> &(dyn Any + Send + 'static); 27 fn as_any(&self) -> &(dyn Any + Send + 'static);
28 fn is_experimental(&self) -> bool { 28 fn is_experimental(&self) -> bool {
29 false 29 false