mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
fixes
This commit is contained in:
parent
45fbab2b1a
commit
7ee2887d1e
2 changed files with 3 additions and 4 deletions
|
@ -192,7 +192,7 @@ impl CrateDefMap {
|
|||
CrateDefMap {
|
||||
krate,
|
||||
edition,
|
||||
xextern_prelude: FxHashMap::default(),
|
||||
extern_prelude: FxHashMap::default(),
|
||||
prelude: None,
|
||||
root,
|
||||
modules,
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
use itertools::Itertools;
|
||||
use hir::{source_binder, diagnostics::Diagnostic as _};
|
||||
use hir::{source_binder, diagnostics::{Diagnostic as _, DiagnosticSink}};
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{
|
||||
Location, SourceFile, SyntaxKind, TextRange, SyntaxNode,
|
||||
ast::{self, AstNode},
|
||||
|
||||
};
|
||||
use ra_text_edit::{TextEdit, TextEditBuilder};
|
||||
|
||||
|
@ -129,7 +128,7 @@ fn check_struct_shorthand_initialization(
|
|||
}
|
||||
|
||||
fn check_module(acc: &mut Vec<Diagnostic>, db: &RootDatabase, module: hir::Module) {
|
||||
let mut diagnostics = hir::diagnostics::DiagnosticSink::default();
|
||||
let mut diagnostics = DiagnosticSink::default();
|
||||
module.diagnostics(db, &mut diagnostics);
|
||||
for decl in module.declarations(db) {
|
||||
match decl {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue