mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: rewrite assoc item manipulaion to use mutable trees
This commit is contained in:
parent
73123a7550
commit
cea589b3b5
7 changed files with 88 additions and 167 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue