From fe6c4115f6c8bb5b5f276bafcbd9cc3fc1d504d1 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Wed, 26 Dec 2018 21:24:49 +0100 Subject: Rename ImplItem to ImplBlock rustc uses the name ImplItem for items in impls, not the impl {} block itself, which could lead to confusion. --- crates/ra_hir/src/module/nameres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir/src/module') diff --git a/crates/ra_hir/src/module/nameres.rs b/crates/ra_hir/src/module/nameres.rs index 8d1209626..3c6851a0a 100644 --- a/crates/ra_hir/src/module/nameres.rs +++ b/crates/ra_hir/src/module/nameres.rs @@ -233,7 +233,7 @@ impl InputModuleItems { ast::ModuleItem::TypeDef(it) => { self.items.push(ModuleItem::new(file_id, file_items, it)?) } - ast::ModuleItem::ImplItem(_) => { + ast::ModuleItem::ImplBlock(_) => { // impls don't define items } ast::ModuleItem::UseItem(it) => self.add_use_item(file_items, it), -- cgit v1.2.3