From 0f2f3a21e7e624f920d182869896347af309e909 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 25 Jan 2019 01:31:32 +0300 Subject: Migrate trait & type to new ids --- crates/ra_hir/src/code_model_impl/module.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'crates/ra_hir/src/code_model_impl') diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs index 1518825c7..6419d3934 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs @@ -147,17 +147,12 @@ impl Module { None => PerNs::none(), } } - ModuleDef::Function(_) - | ModuleDef::Struct(_) - | ModuleDef::Const(_) - | ModuleDef::Static(_) - | ModuleDef::EnumVariant(_) => { + _ => { // could be an inherent method call in UFCS form // (`Struct::method`), or some other kind of associated // item... Which we currently don't handle (TODO) PerNs::none() } - ModuleDef::Def(_) => PerNs::none(), }; } curr_per_ns -- cgit v1.2.3