From 1b2652097183b0a285891c02eea8a7d2af03e4b3 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 26 Nov 2020 19:07:53 +0100 Subject: Add dedicated error for "proc macro not found" --- crates/hir_expand/src/proc_macro.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_expand') diff --git a/crates/hir_expand/src/proc_macro.rs b/crates/hir_expand/src/proc_macro.rs index 7505cb061..97edf0fb6 100644 --- a/crates/hir_expand/src/proc_macro.rs +++ b/crates/hir_expand/src/proc_macro.rs @@ -50,7 +50,7 @@ impl ProcMacroExpander { proc_macro.expander.expand(&tt, None).map_err(mbe::ExpandError::from) } - None => Err(err!("Unresolved proc macro")), + None => Err(mbe::ExpandError::UnresolvedProcMacro), } } } -- cgit v1.2.3