Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_expand/src/eager.rs')
| -rw-r--r-- | crates/hir_expand/src/eager.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_expand/src/eager.rs b/crates/hir_expand/src/eager.rs index b78d740c53..ea57c2c410 100644 --- a/crates/hir_expand/src/eager.rs +++ b/crates/hir_expand/src/eager.rs @@ -119,7 +119,7 @@ pub fn expand_eager_macro( // When `lazy_expand` is called, its *parent* file must be already exists. // Here we store an eager macro id for the argument expanded subtree here // for that purpose. - let arg_id = db.intern_macro(MacroCallLoc { + let arg_id = db.intern_macro_call(MacroCallLoc { def, krate, eager: Some(EagerCallInfo { @@ -157,7 +157,7 @@ pub fn expand_eager_macro( kind: MacroCallKind::FnLike { ast_id: call_id, expand_to }, }; - Ok(db.intern_macro(loc)) + Ok(db.intern_macro_call(loc)) } else { panic!("called `expand_eager_macro` on non-eager macro def {:?}", def); } |