aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-03 17:38:05 +0000
committerJonas Schievink <[email protected]>2020-12-03 17:38:05 +0000
commit3e6ffa5124c620ed1e8d47b676d5fb3300176d24 (patch)
treee891fb7e51b71893418c1eea48b6c619f07717df /crates/hir_def/src
parentd46fce88f5af1a97888edf91df2cb51ff5bfd61c (diff)
Fix proc macro token mapping
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r--crates/hir_def/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
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<ast::MacroCall> {
521 error_sink: &mut dyn FnMut(mbe::ExpandError), 521 error_sink: &mut dyn FnMut(mbe::ExpandError),
522 ) -> Option<MacroCallId> { 522 ) -> Option<MacroCallId> {
523 let def: MacroDefId = resolver(self.path.clone()).or_else(|| { 523 let def: MacroDefId = resolver(self.path.clone()).or_else(|| {
524 error_sink(mbe::ExpandError::Other("could not resolve macro".into())); 524 error_sink(mbe::ExpandError::Other(format!("could not resolve macro `{}`", self.path)));
525 None 525 None
526 })?; 526 })?;
527 527
@@ -556,7 +556,7 @@ impl AsMacroCall for AstIdWithPath<ast::Item> {
556 error_sink: &mut dyn FnMut(mbe::ExpandError), 556 error_sink: &mut dyn FnMut(mbe::ExpandError),
557 ) -> Option<MacroCallId> { 557 ) -> Option<MacroCallId> {
558 let def: MacroDefId = resolver(self.path.clone()).or_else(|| { 558 let def: MacroDefId = resolver(self.path.clone()).or_else(|| {
559 error_sink(mbe::ExpandError::Other("could not resolve macro".into())); 559 error_sink(mbe::ExpandError::Other(format!("could not resolve macro `{}`", self.path)));
560 None 560 None
561 })?; 561 })?;
562 562