diff options
author | Jonas Schievink <[email protected]> | 2020-11-26 18:07:53 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-11-27 12:50:20 +0000 |
commit | 1b2652097183b0a285891c02eea8a7d2af03e4b3 (patch) | |
tree | 2b02ec5c50727df602b0a78595e014c08a7a2963 /crates/hir_expand | |
parent | c66d477f5a72247b04b9025f6ba9c403ca628d41 (diff) |
Add dedicated error for "proc macro not found"
Diffstat (limited to 'crates/hir_expand')
-rw-r--r-- | crates/hir_expand/src/proc_macro.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
50 | 50 | ||
51 | proc_macro.expander.expand(&tt, None).map_err(mbe::ExpandError::from) | 51 | proc_macro.expander.expand(&tt, None).map_err(mbe::ExpandError::from) |
52 | } | 52 | } |
53 | None => Err(err!("Unresolved proc macro")), | 53 | None => Err(mbe::ExpandError::UnresolvedProcMacro), |
54 | } | 54 | } |
55 | } | 55 | } |
56 | } | 56 | } |