Don't bail eager expansion when inner macros fail to resolve

This commit is contained in:
Lukas Wirth 2023-08-01 11:20:15 +02:00
parent c7b34e4873
commit d999d34e39
3 changed files with 46 additions and 18 deletions

View file

@ -1160,7 +1160,7 @@ fn macro_call_as_call_id_(
let macro_call = InFile::new(call.ast_id.file_id, call.ast_id.to_node(db));
expand_eager_macro_input(db, krate, macro_call, def, &|path| {
resolver(path).filter(MacroDefId::is_fn_like)
})?
})
}
_ if def.is_fn_like() => ExpandResult {
value: Some(def.as_lazy_macro(