aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-03-23 18:20:49 +0000
committerAleksey Kladov <[email protected]>2019-03-25 07:52:50 +0000
commit7ee2887d1ec129afed80845c2361ce35f1a0c013 (patch)
treed12cdcbbd5db8611b3158f0d131a1150d58992e5 /crates/ra_ide_api
parent45fbab2b1ac02dab971d245c45c2404494cb3e03 (diff)
fixes
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 {