aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r--crates/ra_ide_api/src/diagnostics.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs
index e03dcaa8f..5b1a90c82 100644
--- a/crates/ra_ide_api/src/diagnostics.rs
+++ b/crates/ra_ide_api/src/diagnostics.rs
@@ -1,10 +1,9 @@
1use itertools::Itertools; 1use itertools::Itertools;
2use hir::{source_binder, diagnostics::Diagnostic as _}; 2use hir::{source_binder, diagnostics::{Diagnostic as _, DiagnosticSink}};
3use ra_db::SourceDatabase; 3use ra_db::SourceDatabase;
4use ra_syntax::{ 4use ra_syntax::{
5 Location, SourceFile, SyntaxKind, TextRange, SyntaxNode, 5 Location, SourceFile, SyntaxKind, TextRange, SyntaxNode,
6 ast::{self, AstNode}, 6 ast::{self, AstNode},
7
8}; 7};
9use ra_text_edit::{TextEdit, TextEditBuilder}; 8use ra_text_edit::{TextEdit, TextEditBuilder};
10 9
@@ -129,7 +128,7 @@ fn check_struct_shorthand_initialization(
129} 128}
130 129
131fn check_module(acc: &mut Vec<Diagnostic>, db: &RootDatabase, module: hir::Module) { 130fn check_module(acc: &mut Vec<Diagnostic>, db: &RootDatabase, module: hir::Module) {
132 let mut diagnostics = hir::diagnostics::DiagnosticSink::default(); 131 let mut diagnostics = DiagnosticSink::default();
133 module.diagnostics(db, &mut diagnostics); 132 module.diagnostics(db, &mut diagnostics);
134 for decl in module.declarations(db) { 133 for decl in module.declarations(db) {
135 match decl { 134 match decl {