diff options
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs index 6602fd27e..06e7ea6da 100644 --- a/crates/ra_ide_api/src/diagnostics.rs +++ b/crates/ra_ide_api/src/diagnostics.rs | |||
@@ -2,7 +2,7 @@ use std::cell::RefCell; | |||
2 | 2 | ||
3 | use hir::diagnostics::{AstDiagnostic, Diagnostic as _, DiagnosticSink}; | 3 | use hir::diagnostics::{AstDiagnostic, Diagnostic as _, DiagnosticSink}; |
4 | use itertools::Itertools; | 4 | use itertools::Itertools; |
5 | use ra_assists::{ast_builder::AstBuilder, ast_editor::AstEditor}; | 5 | use ra_assists::{ast_builder::Make, ast_editor::AstEditor}; |
6 | use ra_db::SourceDatabase; | 6 | use ra_db::SourceDatabase; |
7 | use ra_prof::profile; | 7 | use ra_prof::profile; |
8 | use ra_syntax::{ | 8 | use ra_syntax::{ |
@@ -59,9 +59,9 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic> | |||
59 | let node = d.ast(db); | 59 | let node = d.ast(db); |
60 | let mut ast_editor = AstEditor::new(node); | 60 | let mut ast_editor = AstEditor::new(node); |
61 | for f in d.missed_fields.iter() { | 61 | for f in d.missed_fields.iter() { |
62 | let name_ref = AstBuilder::<ast::NameRef>::new(&f.to_string()); | 62 | let name_ref = Make::<ast::NameRef>::new(&f.to_string()); |
63 | let unit = AstBuilder::<ast::Expr>::unit(); | 63 | let unit = Make::<ast::Expr>::unit(); |
64 | ast_editor.append_field(&AstBuilder::<RecordField>::from_pieces(name_ref, Some(unit))); | 64 | ast_editor.append_field(&Make::<RecordField>::from(name_ref, Some(unit))); |
65 | } | 65 | } |
66 | 66 | ||
67 | let mut builder = TextEditBuilder::default(); | 67 | let mut builder = TextEditBuilder::default(); |