From 3e6ffa5124c620ed1e8d47b676d5fb3300176d24 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 3 Dec 2020 18:38:05 +0100 Subject: Fix proc macro token mapping --- crates/hir_def/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_def/src') diff --git a/crates/hir_def/src/lib.rs b/crates/hir_def/src/lib.rs index ce2be8e2b..b41c5acb2 100644 --- a/crates/hir_def/src/lib.rs +++ b/crates/hir_def/src/lib.rs @@ -521,7 +521,7 @@ impl AsMacroCall for AstIdWithPath { error_sink: &mut dyn FnMut(mbe::ExpandError), ) -> Option { let def: MacroDefId = resolver(self.path.clone()).or_else(|| { - error_sink(mbe::ExpandError::Other("could not resolve macro".into())); + error_sink(mbe::ExpandError::Other(format!("could not resolve macro `{}`", self.path))); None })?; @@ -556,7 +556,7 @@ impl AsMacroCall for AstIdWithPath { error_sink: &mut dyn FnMut(mbe::ExpandError), ) -> Option { let def: MacroDefId = resolver(self.path.clone()).or_else(|| { - error_sink(mbe::ExpandError::Other("could not resolve macro".into())); + error_sink(mbe::ExpandError::Other(format!("could not resolve macro `{}`", self.path))); None })?; -- cgit v1.2.3