aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src/lib.rs')
-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