internal: rewrite assoc item manipulaion to use mutable trees

This commit is contained in:
Aleksey Kladov 2021-05-14 18:47:08 +03:00
parent 73123a7550
commit cea589b3b5
7 changed files with 88 additions and 167 deletions

View file

@ -99,7 +99,7 @@ fn ty_from_text(text: &str) -> ast::Type {
}
pub fn assoc_item_list() -> ast::AssocItemList {
ast_from_text("impl C for D {};")
ast_from_text("impl C for D {}")
}
pub fn impl_trait(trait_: ast::Path, ty: ast::Path) -> ast::Impl {