aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r--crates/ra_hir_ty/src/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_ty/src/diagnostics.rs b/crates/ra_hir_ty/src/diagnostics.rs
index d3ee9cf55..a9877d867 100644
--- a/crates/ra_hir_ty/src/diagnostics.rs
+++ b/crates/ra_hir_ty/src/diagnostics.rs
@@ -248,7 +248,7 @@ impl AstDiagnostic for MismatchedArgCount {
248#[cfg(test)] 248#[cfg(test)]
249mod tests { 249mod tests {
250 use hir_def::{db::DefDatabase, AssocItemId, ModuleDefId}; 250 use hir_def::{db::DefDatabase, AssocItemId, ModuleDefId};
251 use hir_expand::diagnostics::{Diagnostic, DiagnosticSink}; 251 use hir_expand::diagnostics::{Diagnostic, DiagnosticSinkBuilder};
252 use ra_db::{fixture::WithFixture, FileId, SourceDatabase, SourceDatabaseExt}; 252 use ra_db::{fixture::WithFixture, FileId, SourceDatabase, SourceDatabaseExt};
253 use ra_syntax::{TextRange, TextSize}; 253 use ra_syntax::{TextRange, TextSize};
254 use rustc_hash::FxHashMap; 254 use rustc_hash::FxHashMap;
@@ -280,7 +280,7 @@ mod tests {
280 } 280 }
281 281
282 for f in fns { 282 for f in fns {
283 let mut sink = DiagnosticSink::new(&mut cb); 283 let mut sink = DiagnosticSinkBuilder::new().build(&mut cb);
284 validate_body(self, f.into(), &mut sink); 284 validate_body(self, f.into(), &mut sink);
285 } 285 }
286 } 286 }