We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef3a260 + af3d6a4 commit 2117ba0Copy full SHA for 2117ba0
crates/hir_expand/src/eager.rs
@@ -204,8 +204,13 @@ fn eager_macro_recur(
204
205
// Collect replacement
206
for child in children {
207
- let def = diagnostic_sink
208
- .option_with(|| macro_resolver(child.path()?), || err("failed to resolve macro"))?;
+ let def = diagnostic_sink.option_with(
+ || macro_resolver(child.path()?),
209
+ || {
210
+ let path = child.path().map(|path| format!(" `{}!`", path)).unwrap_or_default();
211
+ err(format!("failed to resolve macro{}", path))
212
+ },
213
+ )?;
214
let insert = match def.kind {
215
MacroDefKind::BuiltInEager(..) => {
216
let id = expand_eager_macro(
0 commit comments