aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libeditor/src')
-rw-r--r--crates/libeditor/src/scope/mod_scope.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/libeditor/src/scope/mod_scope.rs b/crates/libeditor/src/scope/mod_scope.rs
index 25faee3b8..052f70569 100644
--- a/crates/libeditor/src/scope/mod_scope.rs
+++ b/crates/libeditor/src/scope/mod_scope.rs
@@ -26,6 +26,7 @@ impl ModuleScope {
26 ast::ModuleItem::ConstDef(item) => Entry::new(item), 26 ast::ModuleItem::ConstDef(item) => Entry::new(item),
27 ast::ModuleItem::StaticDef(item) => Entry::new(item), 27 ast::ModuleItem::StaticDef(item) => Entry::new(item),
28 ast::ModuleItem::TraitDef(item) => Entry::new(item), 28 ast::ModuleItem::TraitDef(item) => Entry::new(item),
29 ast::ModuleItem::TypeDef(item) => Entry::new(item),
29 ast::ModuleItem::Module(item) => Entry::new(item), 30 ast::ModuleItem::Module(item) => Entry::new(item),
30 ast::ModuleItem::UseItem(item) => { 31 ast::ModuleItem::UseItem(item) => {
31 if let Some(tree) = item.use_tree() { 32 if let Some(tree) = item.use_tree() {
@@ -104,6 +105,7 @@ mod tests {
104 y::z, 105 y::z,
105 t, 106 t,
106 }; 107 };
107 ", &["Foo", "Bar", "baz", "quux", "z", "t"]) 108 type T = ();
109 ", &["Foo", "Bar", "baz", "quux", "z", "t", "T"])
108 } 110 }
109} 111}