From a128075af9dd7286d444312ca3bbb9645c008f50 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 26 Jan 2019 23:25:18 +0300 Subject: remove Option hack --- crates/ra_hir/src/nameres/lower.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/ra_hir/src/nameres') diff --git a/crates/ra_hir/src/nameres/lower.rs b/crates/ra_hir/src/nameres/lower.rs index 1d77548f3..8df11a5f4 100644 --- a/crates/ra_hir/src/nameres/lower.rs +++ b/crates/ra_hir/src/nameres/lower.rs @@ -121,10 +121,7 @@ impl LoweredModule { let item_id = file_items.id_of_unchecked(macro_call.syntax()); let loc = MacroCallLoc { module, - source_item_id: SourceItemId { - file_id, - item_id: Some(item_id), - }, + source_item_id: SourceItemId { file_id, item_id }, }; let id = loc.id(db); let file_id = HirFileId::from(id); -- cgit v1.2.3