From 543e950e305aa7bd7e0b185753752d0561c70459 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Tue, 5 Jan 2021 14:03:58 +0200 Subject: Move the test mark --- crates/hir_def/src/import_map.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/hir_def/src') diff --git a/crates/hir_def/src/import_map.rs b/crates/hir_def/src/import_map.rs index 59206cab8..e5368b293 100644 --- a/crates/hir_def/src/import_map.rs +++ b/crates/hir_def/src/import_map.rs @@ -186,14 +186,16 @@ impl ImportMap { is_type_in_ns: bool, original_import_info: &ImportInfo, ) { - mark::hit!(type_aliases_ignored); for (assoc_item_name, item) in &db.trait_data(tr).items { let module_def_id = match item { AssocItemId::FunctionId(f) => ModuleDefId::from(*f), AssocItemId::ConstId(c) => ModuleDefId::from(*c), // cannot use associated type aliases directly: need a `::TypeAlias` // qualifier, ergo no need to store it for imports in import_map - AssocItemId::TypeAliasId(_) => continue, + AssocItemId::TypeAliasId(_) => { + mark::hit!(type_aliases_ignored); + continue; + } }; let assoc_item = if is_type_in_ns { ItemInNs::Types(module_def_id) -- cgit v1.2.3