diff options
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r-- | crates/ra_hir_ty/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_hir_ty/src/diagnostics.rs | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/crates/ra_hir_ty/Cargo.toml b/crates/ra_hir_ty/Cargo.toml index cdabb359f..7242e2cb6 100644 --- a/crates/ra_hir_ty/Cargo.toml +++ b/crates/ra_hir_ty/Cargo.toml | |||
@@ -37,4 +37,4 @@ expect = { path = "../expect" } | |||
37 | 37 | ||
38 | tracing = "0.1" | 38 | tracing = "0.1" |
39 | tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "registry"] } | 39 | tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "registry"] } |
40 | tracing-tree = { version = "0.1.3" } | 40 | tracing-tree = { version = "0.1.4" } |
diff --git a/crates/ra_hir_ty/src/diagnostics.rs b/crates/ra_hir_ty/src/diagnostics.rs index d3ee9cf55..885abbaf2 100644 --- a/crates/ra_hir_ty/src/diagnostics.rs +++ b/crates/ra_hir_ty/src/diagnostics.rs | |||
@@ -234,6 +234,9 @@ impl Diagnostic for MismatchedArgCount { | |||
234 | fn as_any(&self) -> &(dyn Any + Send + 'static) { | 234 | fn as_any(&self) -> &(dyn Any + Send + 'static) { |
235 | self | 235 | self |
236 | } | 236 | } |
237 | fn is_experimental(&self) -> bool { | ||
238 | true | ||
239 | } | ||
237 | } | 240 | } |
238 | 241 | ||
239 | impl AstDiagnostic for MismatchedArgCount { | 242 | impl AstDiagnostic for MismatchedArgCount { |
@@ -248,7 +251,7 @@ impl AstDiagnostic for MismatchedArgCount { | |||
248 | #[cfg(test)] | 251 | #[cfg(test)] |
249 | mod tests { | 252 | mod tests { |
250 | use hir_def::{db::DefDatabase, AssocItemId, ModuleDefId}; | 253 | use hir_def::{db::DefDatabase, AssocItemId, ModuleDefId}; |
251 | use hir_expand::diagnostics::{Diagnostic, DiagnosticSink}; | 254 | use hir_expand::diagnostics::{Diagnostic, DiagnosticSinkBuilder}; |
252 | use ra_db::{fixture::WithFixture, FileId, SourceDatabase, SourceDatabaseExt}; | 255 | use ra_db::{fixture::WithFixture, FileId, SourceDatabase, SourceDatabaseExt}; |
253 | use ra_syntax::{TextRange, TextSize}; | 256 | use ra_syntax::{TextRange, TextSize}; |
254 | use rustc_hash::FxHashMap; | 257 | use rustc_hash::FxHashMap; |
@@ -280,7 +283,7 @@ mod tests { | |||
280 | } | 283 | } |
281 | 284 | ||
282 | for f in fns { | 285 | for f in fns { |
283 | let mut sink = DiagnosticSink::new(&mut cb); | 286 | let mut sink = DiagnosticSinkBuilder::new().build(&mut cb); |
284 | validate_body(self, f.into(), &mut sink); | 287 | validate_body(self, f.into(), &mut sink); |
285 | } | 288 | } |
286 | } | 289 | } |