mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
builtin_macro: move to mbe::ExpandResult
This commit is contained in:
parent
70eb170271
commit
92f52c5c9a
3 changed files with 79 additions and 50 deletions
|
@ -65,7 +65,7 @@ pub fn expand_eager_macro(
|
|||
let subtree = to_subtree(&result)?;
|
||||
|
||||
if let MacroDefKind::BuiltInEager(eager) = def.kind {
|
||||
let (subtree, fragment) = eager.expand(db, arg_id, &subtree).ok()?;
|
||||
let (subtree, fragment) = eager.expand(db, arg_id, &subtree).value?;
|
||||
let eager = EagerCallLoc {
|
||||
def,
|
||||
fragment,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue