mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: refactor unresolved import diagnostic
This commit is contained in:
parent
39f190b72c
commit
6d104de15a
6 changed files with 127 additions and 92 deletions
|
@ -498,7 +498,10 @@ impl Module {
|
|||
let import = &item_tree[id.value];
|
||||
|
||||
let use_tree = import.use_tree_to_ast(db.upcast(), file_id, *index);
|
||||
sink.push(UnresolvedImport { file: file_id, node: AstPtr::new(&use_tree) });
|
||||
acc.push(
|
||||
UnresolvedImport { decl: InFile::new(file_id, AstPtr::new(&use_tree)) }
|
||||
.into(),
|
||||
);
|
||||
}
|
||||
|
||||
DefDiagnosticKind::UnconfiguredCode { ast, cfg, opts } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue