mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
fix todo
This commit is contained in:
parent
61e1474ab3
commit
80a1725147
1 changed files with 0 additions and 3 deletions
|
@ -58,9 +58,6 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.on::<hir::diagnostics::MissingFields, _>(|d| {
|
.on::<hir::diagnostics::MissingFields, _>(|d| {
|
||||||
//TODO: commment
|
|
||||||
let file_id = d.file().original_file(db);
|
|
||||||
let source_file = db.parse(file_id).tree;
|
|
||||||
let syntax_node = d.syntax_node_ptr();
|
let syntax_node = d.syntax_node_ptr();
|
||||||
let node = NamedFieldList::cast(syntax_node.to_node(source_file.syntax())).unwrap();
|
let node = NamedFieldList::cast(syntax_node.to_node(source_file.syntax())).unwrap();
|
||||||
let mut ast_editor = AstEditor::new(node);
|
let mut ast_editor = AstEditor::new(node);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue