From 92f52c5c9ad5acb104c6ce5a042950349a48c532 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 30 Nov 2020 19:21:25 +0100 Subject: builtin_macro: move to `mbe::ExpandResult` --- crates/hir_expand/src/eager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_expand/src/eager.rs') diff --git a/crates/hir_expand/src/eager.rs b/crates/hir_expand/src/eager.rs index 2f37d7189..ab6b4477c 100644 --- a/crates/hir_expand/src/eager.rs +++ b/crates/hir_expand/src/eager.rs @@ -65,7 +65,7 @@ pub fn expand_eager_macro( let subtree = to_subtree(&result)?; if let MacroDefKind::BuiltInEager(eager) = def.kind { - let (subtree, fragment) = eager.expand(db, arg_id, &subtree).ok()?; + let (subtree, fragment) = eager.expand(db, arg_id, &subtree).value?; let eager = EagerCallLoc { def, fragment, -- cgit v1.2.3