Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store/expander.rs')
-rw-r--r--crates/hir-def/src/expr_store/expander.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/expr_store/expander.rs b/crates/hir-def/src/expr_store/expander.rs
index c79a1db847..35cf1c9681 100644
--- a/crates/hir-def/src/expr_store/expander.rs
+++ b/crates/hir-def/src/expr_store/expander.rs
@@ -184,12 +184,12 @@ impl<'db> Expander<'db> {
self.recursion_depth = u32::MAX;
cov_mark::hit!(your_stack_belongs_to_me);
return ExpandResult::only_err(ExpandError::new(
- db.macro_arg_considering_derives(call_id, &call_id.lookup(db).kind).2,
+ call_id.macro_arg_considering_derives(db, &call_id.lookup(db).kind).2,
ExpandErrorKind::RecursionOverflow,
));
}
- let res = db.parse_macro_expansion(call_id);
+ let res = call_id.parse_macro_expansion(db);
let err = err.or_else(|| res.err.clone());
ExpandResult {