aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r--crates/ra_ide_api/src/diagnostics.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs
index 4cf2a0b70..a2a8c1e4f 100644
--- a/crates/ra_ide_api/src/diagnostics.rs
+++ b/crates/ra_ide_api/src/diagnostics.rs
@@ -58,9 +58,6 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
58 }) 58 })
59 }) 59 })
60 .on::<hir::diagnostics::MissingFields, _>(|d| { 60 .on::<hir::diagnostics::MissingFields, _>(|d| {
61 //TODO: commment
62 let file_id = d.file().original_file(db);
63 let source_file = db.parse(file_id).tree;
64 let syntax_node = d.syntax_node_ptr(); 61 let syntax_node = d.syntax_node_ptr();
65 let node = NamedFieldList::cast(syntax_node.to_node(source_file.syntax())).unwrap(); 62 let node = NamedFieldList::cast(syntax_node.to_node(source_file.syntax())).unwrap();
66 let mut ast_editor = AstEditor::new(node); 63 let mut ast_editor = AstEditor::new(node);