diff options
author | Aleksey Kladov <[email protected]> | 2019-03-23 18:20:49 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-03-25 07:52:50 +0000 |
commit | 7ee2887d1ec129afed80845c2361ce35f1a0c013 (patch) | |
tree | d12cdcbbd5db8611b3158f0d131a1150d58992e5 /crates/ra_ide_api | |
parent | 45fbab2b1ac02dab971d245c45c2404494cb3e03 (diff) |
fixes
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 5 |
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 @@ | |||
1 | use itertools::Itertools; | 1 | use itertools::Itertools; |
2 | use hir::{source_binder, diagnostics::Diagnostic as _}; | 2 | use hir::{source_binder, diagnostics::{Diagnostic as _, DiagnosticSink}}; |
3 | use ra_db::SourceDatabase; | 3 | use ra_db::SourceDatabase; |
4 | use ra_syntax::{ | 4 | use 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 | }; |
9 | use ra_text_edit::{TextEdit, TextEditBuilder}; | 8 | use ra_text_edit::{TextEdit, TextEditBuilder}; |
10 | 9 | ||
@@ -129,7 +128,7 @@ fn check_struct_shorthand_initialization( | |||
129 | } | 128 | } |
130 | 129 | ||
131 | fn check_module(acc: &mut Vec<Diagnostic>, db: &RootDatabase, module: hir::Module) { | 130 | fn 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 { |