aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-07-24 15:30:12 +0100
committerJonas Schievink <[email protected]>2020-07-24 15:30:12 +0100
commit6f02befee4249618a2a7858d27649fa389888ea8 (patch)
tree57ebf87e049cf1bded4c94338ca86dcd84e77d27 /crates/ra_hir_ty/src
parentc3defe2532ba6ffd12a13bcbc8fdeda037665efc (diff)
Add a builder for DiagnosticSink
Diffstat (limited to 'crates/ra_hir_ty/src')
-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 }