From dea6ed73fac6f3f4daf38b1cb6df4c8fb68872b7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 Aug 2018 19:35:09 +0300 Subject: better pattern recovery --- crates/libeditor/src/scope/mod_scope.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/libeditor/src/scope') diff --git a/crates/libeditor/src/scope/mod_scope.rs b/crates/libeditor/src/scope/mod_scope.rs index 0e51108d9..aa8dd93a7 100644 --- a/crates/libeditor/src/scope/mod_scope.rs +++ b/crates/libeditor/src/scope/mod_scope.rs @@ -13,6 +13,8 @@ impl ModuleScope { ast::ModuleItem::StructDef(item) => Entry::new(item), ast::ModuleItem::EnumDef(item) => Entry::new(item), ast::ModuleItem::FnDef(item) => Entry::new(item), + ast::ModuleItem::ConstDef(item) => Entry::new(item), + ast::ModuleItem::StaticDef(item) => Entry::new(item), ast::ModuleItem::TraitDef(item) => Entry::new(item), ast::ModuleItem::ExternCrateItem(_) | ast::ModuleItem::ImplItem(_) | -- cgit v1.2.3