mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Don't bail eager expansion when inner macros fail to resolve
This commit is contained in:
parent
c7b34e4873
commit
d999d34e39
3 changed files with 46 additions and 18 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue