diff --git a/crates/ra_assists/src/ast_editor.rs b/crates/ra_assists/src/ast_editor.rs index 283b280b6ab..6854294ae9e 100644 --- a/crates/ra_assists/src/ast_editor.rs +++ b/crates/ra_assists/src/ast_editor.rs @@ -331,31 +331,3 @@ mod tokens { } } - -#[cfg(test)] -mod tests { - use super::*; - - use ra_syntax::SourceFile; - - #[test] - fn structure_editing() { - let file = SourceFile::parse( - "\ -fn foo() { - let s = S { - original: 92, - } -} -", - ); - let field_list = file.syntax().descendants().find_map(ast::NamedFieldList::cast).unwrap(); - let mut editor = AstEditor::new(field_list); - - let field = AstBuilder::::from_text("first_inserted: 1"); - editor.append_field(&field); - let field = AstBuilder::::from_text("second_inserted: 2"); - editor.append_field(&field); - eprintln!("{}", editor.ast().syntax()); - } -}