mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 12:54:00 +00:00
fixes
This commit is contained in:
parent
45fbab2b1a
commit
7ee2887d1e
@ -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…
Reference in New Issue
Block a user